Skip to content

Commit bde6bf3

Browse files
committed
Add 3.5 versions
1 parent eae8831 commit bde6bf3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ enum SourceVersion:
1010
case `3.2-migration`, `3.2`
1111
case `3.3-migration`, `3.3`
1212
case `3.4-migration`, `3.4`
13+
case `3.5-migration`, `3.5`
1314
// !!! Keep in sync with scala.runtime.stdlibPatches.language !!!
1415
case `future-migration`, `future`
1516

library/src/scala/runtime/stdLibPatches/language.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,20 @@ object language:
249249
@compileTimeOnly("`3.4` can only be used at compile time in import statements")
250250
object `3.4`
251251

252+
/** Set source version to 3.5-migration.
253+
*
254+
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
255+
*/
256+
@compileTimeOnly("`3.5-migration` can only be used at compile time in import statements")
257+
object `3.5-migration`
258+
259+
/** Set source version to 3.5
260+
*
261+
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
262+
*/
263+
@compileTimeOnly("`3.5` can only be used at compile time in import statements")
264+
object `3.5`
265+
252266
// !!! Keep in sync with dotty.tools.dotc.config.SourceVersion !!!
253267
// Also add tests in `tests/pos/source-import-3-x.scala` and `tests/pos/source-import-3-x-migration.scala`
254268

0 commit comments

Comments
 (0)