Skip to content

Commit

Permalink
Introduce the SourceVersions 3.4 and 3.4-migration; make 3.4 the defa…
Browse files Browse the repository at this point in the history
…ult. (scala#18501)
  • Loading branch information
Kordyjan authored Sep 4, 2023
2 parents 16dd58f + bb40d54 commit 84436c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/config/SourceVersion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ enum SourceVersion:
case `3.0-migration`, `3.0`, `3.1` // Note: do not add `3.1-migration` here, 3.1 is the same language as 3.0.
case `3.2-migration`, `3.2`
case `3.3-migration`, `3.3`
case `3.4-migration`, `3.4`
case `future-migration`, `future`

val isMigrating: Boolean = toString.endsWith("-migration")
Expand All @@ -21,7 +22,7 @@ enum SourceVersion:
def isAtMost(v: SourceVersion) = stable.ordinal <= v.ordinal

object SourceVersion extends Property.Key[SourceVersion]:
def defaultSourceVersion = `3.3`
def defaultSourceVersion = `3.4`

/** language versions that may appear in a language import, are deprecated, but not removed from the standard library. */
val illegalSourceVersionNames = List("3.1-migration").map(_.toTermName)
Expand Down

0 comments on commit 84436c0

Please sign in to comment.