Skip to content

Commit 64e7aa7

Browse files
Prepare build for Scala 3.7.0 development (#22378)
Scala 3.6.4 has been cutoff, next released version is Scala 3.7.0
2 parents 0fe6877 + ec059e5 commit 64e7aa7

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ enum SourceVersion:
1313
case `3.5-migration`, `3.5`
1414
case `3.6-migration`, `3.6`
1515
case `3.7-migration`, `3.7`
16+
case `3.8-migration`, `3.8`
1617
// !!! Keep in sync with scala.runtime.stdlibPatches.language !!!
1718
case `future-migration`, `future`
1819

@@ -31,7 +32,7 @@ enum SourceVersion:
3132
def isAtMost(v: SourceVersion) = stable.ordinal <= v.ordinal
3233

3334
object SourceVersion extends Property.Key[SourceVersion]:
34-
def defaultSourceVersion = `3.6`
35+
def defaultSourceVersion = `3.7`
3536

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

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,20 @@ object language:
330330
@compileTimeOnly("`3.7` can only be used at compile time in import statements")
331331
object `3.7`
332332

333+
/** Set source version to 3.8-migration.
334+
*
335+
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
336+
*/
337+
@compileTimeOnly("`3.8-migration` can only be used at compile time in import statements")
338+
object `3.8-migration`
339+
340+
/** Set source version to 3.8
341+
*
342+
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
343+
*/
344+
@compileTimeOnly("`3.8` can only be used at compile time in import statements")
345+
object `3.8`
346+
333347

334348
// !!! Keep in sync with dotty.tools.dotc.config.SourceVersion !!!
335349
// Also add tests in `tests/pos/source-import-3-x.scala` and `tests/pos/source-import-3-x-migration.scala`

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ object Build {
109109
*
110110
* Warning: Change of this variable might require updating `expectedTastyVersion`
111111
*/
112-
val developedVersion = "3.6.4"
112+
val developedVersion = "3.7.0"
113113

114114
/** The version of the compiler including the RC prefix.
115115
* Defined as common base before calculating environment specific suffixes in `dottyVersion`

0 commit comments

Comments
 (0)