Skip to content

Commit ccf7416

Browse files
committed
Introduce the SourceVersions 3.4 and 3.4-migration; make 3.4 the default.
1 parent 048951c commit ccf7416

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/config/SourceVersion.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ enum SourceVersion:
99
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.
1010
case `3.2-migration`, `3.2`
1111
case `3.3-migration`, `3.3`
12+
case `3.4-migration`, `3.4`
1213
case `future-migration`, `future`
1314

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

2324
object SourceVersion extends Property.Key[SourceVersion]:
24-
def defaultSourceVersion = `3.3`
25+
def defaultSourceVersion = `3.4`
2526

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

0 commit comments

Comments
 (0)