Skip to content

Commit

Permalink
Add -new-syntax option
Browse files Browse the repository at this point in the history
  • Loading branch information
joan38 committed Sep 30, 2023
1 parent 9953268 commit 1a5c42f
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 1a5c42f

Please sign in to comment.