Skip to content

Commit

Permalink
Merge pull request #84 from joan38/new-syntax
Browse files Browse the repository at this point in the history
Add -new-syntax option
  • Loading branch information
satorg authored Nov 3, 2023
2 parents fca373c + 4055522 commit d735459
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ private[scalacoptions] trait ScalacOptions {
*/
val source31 = scala3Source("3.1", version => version >= V3_1_0)

/** Enforce the new `then` and `do` in control expressions introduced in Scala 3.x.
*/
val newSyntax = ScalacOption("-new-syntax", List.empty, version => version >= V3_0_0)

/** Enable or disable language features
*/
def languageFeatureOption(
Expand Down

0 comments on commit d735459

Please sign in to comment.