File tree 2 files changed +6
-1
lines changed
library/src-non-bootstrapped/scala/annotation/internal
2 files changed +6
-1
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 @@ -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