Skip to content

Commit 4cfd8fe

Browse files
Merge pull request #13366 from dotty-staging/update-reference-compiler-to-3.1.0-RC1-bin-20210823-dd7a07a-NIGHTLY
Update reference compiler to 3.1.0-RC1-NIGHTLY
2 parents 633f896 + d565dd5 commit 4cfd8fe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

library/src-non-bootstrapped/scala/annotation/internal/experimentalTest.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ package internal
88
* It may accidentally be visible while compiling the non-bootstrapped library.
99
*/
1010
@experimental def testExperimental = 4
11+
12+
// def test = testExperimental // This should fail if un-commented

project/Build.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ object DottyJSPlugin extends AutoPlugin {
6363
}
6464

6565
object Build {
66-
val referenceVersion = "3.0.0"
66+
val referenceVersion = "3.1.0-RC1-bin-20210823-dd7a07a-NIGHTLY"
6767

6868
val baseVersion = "3.1.0-RC1"
6969

@@ -1740,7 +1740,10 @@ object Build {
17401740
val base =
17411741
project.withCommonSettings.
17421742
settings(
1743-
libraryDependencies += "org.scala-lang" % "scala-library" % stdlibVersion
1743+
libraryDependencies += "org.scala-lang" % "scala-library" % stdlibVersion,
1744+
// Make sure we do not refer to experimental features outside an experimental scope.
1745+
// In other words, disable NIGHTLY/SNAPSHOT experimental scope.
1746+
scalacOptions += "-Yno-experimental",
17441747
).
17451748
settings(dottyLibrarySettings)
17461749
if (mode == Bootstrapped) {

0 commit comments

Comments
 (0)