File tree 2 files changed +7
-2
lines changed
library/src-non-bootstrapped/scala/annotation/internal
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ package internal
8
8
* It may accidentally be visible while compiling the non-bootstrapped library.
9
9
*/
10
10
@ experimental def testExperimental = 4
11
+
12
+ // def test = testExperimental // This should fail if un-commented
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ object DottyJSPlugin extends AutoPlugin {
63
63
}
64
64
65
65
object Build {
66
- val referenceVersion = " 3.0.0 "
66
+ val referenceVersion = " 3.1.0-RC1-bin-20210823-dd7a07a-NIGHTLY "
67
67
68
68
val baseVersion = " 3.1.0-RC1"
69
69
@@ -1740,7 +1740,10 @@ object Build {
1740
1740
val base =
1741
1741
project.withCommonSettings.
1742
1742
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" ,
1744
1747
).
1745
1748
settings(dottyLibrarySettings)
1746
1749
if (mode == Bootstrapped ) {
You can’t perform that action at this time.
0 commit comments