Skip to content

Commit 4aaff32

Browse files
committed
Fix CI
1 parent d1e4873 commit 4aaff32

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ class BootstrappedOnlyCompilationTests {
118118
aggregateTests(
119119
compileFilesInDir("tests/run-macros", defaultOptions.and("-Xcheck-macros")),
120120
compileFilesInDir("tests/run-custom-args/Yretain-trees", defaultOptions and "-Yretain-trees"),
121-
compileFilesInDir("tests/run-custom-args/run-macros-erased", defaultOptions.and("-language:experimental.erasedDefinitions").and("-Xcheck-macros")),
122121
)
123122
}.checkRuns()
124123

@@ -204,12 +203,18 @@ class BootstrappedOnlyCompilationTests {
204203

205204
@Test def experimental: Unit =
206205
implicit val testGroup: TestGroup = TestGroup("experimental")
206+
val enableExperimental = defaultOptions.without("-Yno-experimental")
207+
val enableErased = enableExperimental.and("-language:experimental.erasedDefinitions")
207208
compileFilesInDir("tests/neg-custom-args/no-experimental", defaultOptions.and("-Yno-experimental")).checkExpectedErrors()
208209
if config.Properties.experimental then
209-
compileFilesInDir("tests/run-custom-args/experimental", defaultOptions.without("-Yno-experimental")).checkRuns()
210-
compileFilesInDir("tests/neg-custom-args/experimental", defaultOptions.without("-Yno-experimental")).checkExpectedErrors()
211-
compileFilesInDir("tests/pos-custom-args/experimental", defaultOptions.without("-Yno-experimental")).checkCompile()
210+
compileFilesInDir("tests/run-custom-args/experimental", enableExperimental).checkRuns()
211+
compileFilesInDir("tests/neg-custom-args/experimental", enableExperimental).checkExpectedErrors()
212+
compileFilesInDir("tests/pos-custom-args/experimental", enableExperimental).checkCompile()
212213
compileFilesInDir("tests/run-staging-experimental", withStagingOptions.without("-Yno-experimental")).checkRuns()
214+
compileFilesInDir("tests/neg-custom-args/erased", enableErased).checkExpectedErrors()
215+
compileFilesInDir("tests/pos-custom-args/erased", enableErased).checkCompile()
216+
compileFilesInDir("tests/run-custom-args/run-macros-erased", enableErased.and("-Xcheck-macros")).checkRuns()
217+
compileFilesInDir("tests/run-custom-args/erased", enableErased)
213218

214219
}
215220

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class CompilationTests {
3939
compileFilesInDir("tests/pos-special/isInstanceOf", allowDeepSubtypes.and("-Xfatal-warnings")),
4040
compileFilesInDir("tests/new", defaultOptions),
4141
compileFilesInDir("tests/pos-scala2", scala2CompatMode),
42-
compileFilesInDir("tests/pos-custom-args/erased", defaultOptions.and("-language:experimental.erasedDefinitions")),
4342
compileFilesInDir("tests/pos", defaultOptions.and("-Ysafe-init")),
4443
compileFilesInDir("tests/pos-deep-subtype", allowDeepSubtypes),
4544
compileDir("tests/pos-special/java-param-names", defaultOptions.withJavacOnlyOptions("-parameters")),
@@ -126,7 +125,6 @@ class CompilationTests {
126125
compileFilesInDir("tests/neg-no-kind-polymorphism", defaultOptions and "-Yno-kind-polymorphism"),
127126
compileFilesInDir("tests/neg-custom-args/deprecation", defaultOptions.and("-Xfatal-warnings", "-deprecation")),
128127
compileFilesInDir("tests/neg-custom-args/fatal-warnings", defaultOptions.and("-Xfatal-warnings")),
129-
compileFilesInDir("tests/neg-custom-args/erased", defaultOptions.and("-language:experimental.erasedDefinitions")),
130128
compileFilesInDir("tests/neg-custom-args/allow-double-bindings", allowDoubleBindings),
131129
compileFilesInDir("tests/neg-custom-args/allow-deep-subtypes", allowDeepSubtypes),
132130
compileFilesInDir("tests/neg-custom-args/explicit-nulls", defaultOptions.and("-Yexplicit-nulls")),
@@ -165,9 +163,7 @@ class CompilationTests {
165163
compileDir("tests/neg-custom-args/adhoc-extension", defaultOptions.and("-source", "future", "-feature", "-Xfatal-warnings")),
166164
compileFile("tests/neg/i7575.scala", defaultOptions.withoutLanguageFeatures.and("-language:_")),
167165
compileFile("tests/neg-custom-args/kind-projector.scala", defaultOptions.and("-Ykind-projector")),
168-
compileFile("tests/neg-custom-args/typeclass-derivation2.scala", defaultOptions.and("-language:experimental.erasedDefinitions")),
169166
compileFile("tests/neg-custom-args/i5498-postfixOps.scala", defaultOptions withoutLanguageFeature "postfixOps"),
170-
compileFile("tests/neg-custom-args/deptypes.scala", defaultOptions.and("-language:experimental.dependent")),
171167
compileFile("tests/neg-custom-args/matchable.scala", defaultOptions.and("-Xfatal-warnings", "-source", "future")),
172168
compileFile("tests/neg-custom-args/i7314.scala", defaultOptions.and("-Xfatal-warnings", "-source", "future")),
173169
compileFile("tests/neg-custom-args/feature-shadowing.scala", defaultOptions.and("-Xfatal-warnings", "-feature")),
@@ -189,7 +185,6 @@ class CompilationTests {
189185
compileFile("tests/run-custom-args/fors.scala", defaultOptions.and("-source", "future")),
190186
compileFile("tests/run-custom-args/no-useless-forwarders.scala", defaultOptions and "-Xmixin-force-forwarders:false"),
191187
compileFile("tests/run-custom-args/defaults-serizaliable-no-forwarders.scala", defaultOptions and "-Xmixin-force-forwarders:false"),
192-
compileFilesInDir("tests/run-custom-args/erased", defaultOptions.and("-language:experimental.erasedDefinitions").without("-Yno-experimental")),
193188
compileFilesInDir("tests/run-deep-subtype", allowDeepSubtypes),
194189
compileFilesInDir("tests/run", defaultOptions.and("-Ysafe-init"))
195190
).checkRuns()

tests/neg-custom-args/typeclass-derivation2.scala renamed to tests/neg-custom-args/erased/typeclass-derivation2.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import language.experimental.erasedDefinitions
2+
13
import scala.collection.mutable
24
import scala.annotation.tailrec
35

tests/neg-custom-args/deptypes.scala renamed to tests/neg-custom-args/experimental/deptypes.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import language.experimental.dependent
12

23
type Vec[T] = (n: Int) =>> Array[T] // error: not yet implemented
34

0 commit comments

Comments
 (0)