File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed
compiler/src/dotty/tools/dotc/config Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ enum SourceVersion:
1717 case `3.6-migration`, `3.6`
1818 case `3.7-migration`, `3.7`
1919 case `3.8-migration`, `3.8`
20+ case `3.9-migration`, `3.9`
2021 // Add 3.x-migration and 3.x here
2122 // !!! Keep in sync with scala.runtime.stdlibPatches.language !!!
2223 case `2.13`
@@ -49,7 +50,7 @@ enum SourceVersion:
4950object SourceVersion extends Property .Key [SourceVersion ]:
5051
5152 /* The default source version used by the built compiler */
52- val defaultSourceVersion = `3.7 `
53+ val defaultSourceVersion = `3.8 `
5354
5455 /* Illegal source versions that may not appear in the settings `-source:<...>` */
5556 val illegalInSettings = List (`2.13`, `3.1-migration`, `never`)
Original file line number Diff line number Diff line change @@ -560,4 +560,17 @@ object language {
560560 @ compileTimeOnly(" `3.8` can only be used at compile time in import statements" )
561561 object `3.8`
562562
563+ /** Set source version to 3.9-migration.
564+ *
565+ * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html ]]
566+ */
567+ @ compileTimeOnly(" `3.9-migration` can only be used at compile time in import statements" )
568+ object `3.9-migration`
569+
570+ /** Set source version to 3.9
571+ *
572+ * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html ]]
573+ */
574+ @ compileTimeOnly(" `3.9` can only be used at compile time in import statements" )
575+ object `3.9`
563576}
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ object language:
350350 @ compileTimeOnly(" `3.7` can only be used at compile time in import statements" )
351351 object `3.7`
352352
353- /** Set source version to 3.8-migration.
353+ /** Set source version to 3.8-migration.
354354 *
355355 * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html ]]
356356 */
@@ -364,6 +364,19 @@ object language:
364364 @ compileTimeOnly(" `3.8` can only be used at compile time in import statements" )
365365 object `3.8`
366366
367+ /** Set source version to 3.9-migration.
368+ *
369+ * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html ]]
370+ */
371+ @ compileTimeOnly(" `3.9-migration` can only be used at compile time in import statements" )
372+ object `3.9-migration`
373+
374+ /** Set source version to 3.9
375+ *
376+ * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html ]]
377+ */
378+ @ compileTimeOnly(" `3.9` can only be used at compile time in import statements" )
379+ object `3.9`
367380
368381 // !!! Keep in sync with dotty.tools.dotc.config.SourceVersion !!!
369382 // Also add tests in `tests/pos/source-import-3-x.scala` and `tests/pos/source-import-3-x-migration.scala`
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ object Build {
6363 *
6464 * Warning: Change of this variable might require updating `expectedTastyVersion`
6565 */
66- val developedVersion = " 3.7.3 "
66+ val developedVersion = " 3.8.0 "
6767
6868 /** The version of the compiler including the RC prefix.
6969 * Defined as common base before calculating environment specific suffixes in `dottyVersion`
You can’t perform that action at this time.
0 commit comments