Skip to content

Commit e9fa840

Browse files
committed
Sync language.scala with main
1 parent a220621 commit e9fa840

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

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

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

0 commit comments

Comments
 (0)