File tree 4 files changed +18
-0
lines changed
compiler/src/dotty/tools/dotc/config
library/src/scala/runtime/stdLibPatches
4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ enum SourceVersion:
12
12
case `3.4-migration`, `3.4`
13
13
case `3.5-migration`, `3.5`
14
14
case `3.6-migration`, `3.6`
15
+ case `3.7-migration`, `3.7`
15
16
// !!! Keep in sync with scala.runtime.stdlibPatches.language !!!
16
17
case `future-migration`, `future`
17
18
Original file line number Diff line number Diff line change @@ -300,6 +300,21 @@ object language:
300
300
@ compileTimeOnly(" `3.6` can only be used at compile time in import statements" )
301
301
object `3.6`
302
302
303
+ /** Set source version to 3.7-migration.
304
+ *
305
+ * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html ]]
306
+ */
307
+ @ compileTimeOnly(" `3.7-migration` can only be used at compile time in import statements" )
308
+ object `3.7-migration`
309
+
310
+ /** Set source version to 3.7
311
+ *
312
+ * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html ]]
313
+ */
314
+ @ compileTimeOnly(" `3.7` can only be used at compile time in import statements" )
315
+ object `3.7`
316
+
317
+
303
318
// !!! Keep in sync with dotty.tools.dotc.config.SourceVersion !!!
304
319
// Also add tests in `tests/pos/source-import-3-x.scala` and `tests/pos/source-import-3-x-migration.scala`
305
320
Original file line number Diff line number Diff line change
1
+ import language .`3.7-migration`
Original file line number Diff line number Diff line change
1
+ import language .`3.7`
You can’t perform that action at this time.
0 commit comments