File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
library/src-non-bootstrapped/scala/annotation/internal Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -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 ) {
You can’t perform that action at this time.
0 commit comments