@@ -39,7 +39,7 @@ 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(" -Yerased-terms " )),
42+ compileFilesInDir(" tests/pos-custom-args/erased" , defaultOptions.and(" -language:experimental.erasedTerms " )),
4343 compileFilesInDir(" tests/pos" , defaultOptions.and(" -Ycheck-init" )),
4444 compileFilesInDir(" tests/pos-deep-subtype" , allowDeepSubtypes),
4545 compileDir(" tests/pos-special/java-param-names" , defaultOptions.withJavacOnlyOptions(" -parameters" )),
@@ -126,7 +126,7 @@ class CompilationTests {
126126 compileFilesInDir(" tests/neg-no-kind-polymorphism" , defaultOptions and " -Yno-kind-polymorphism" ),
127127 compileFilesInDir(" tests/neg-custom-args/deprecation" , defaultOptions.and(" -Xfatal-warnings" , " -deprecation" )),
128128 compileFilesInDir(" tests/neg-custom-args/fatal-warnings" , defaultOptions.and(" -Xfatal-warnings" )),
129- compileFilesInDir(" tests/neg-custom-args/erased" , defaultOptions.and(" -Yerased-terms " )),
129+ compileFilesInDir(" tests/neg-custom-args/erased" , defaultOptions.and(" -language:experimental.erasedTerms " )),
130130 compileFilesInDir(" tests/neg-custom-args/allow-double-bindings" , allowDoubleBindings),
131131 compileFilesInDir(" tests/neg-custom-args/allow-deep-subtypes" , allowDeepSubtypes),
132132 compileFilesInDir(" tests/neg-custom-args/explicit-nulls" , defaultOptions.and(" -Yexplicit-nulls" )),
@@ -164,7 +164,7 @@ class CompilationTests {
164164 compileDir(" tests/neg-custom-args/adhoc-extension" , defaultOptions.and(" -source" , " future" , " -feature" , " -Xfatal-warnings" )),
165165 compileFile(" tests/neg/i7575.scala" , defaultOptions.withoutLanguageFeatures.and(" -language:_" )),
166166 compileFile(" tests/neg-custom-args/kind-projector.scala" , defaultOptions.and(" -Ykind-projector" )),
167- compileFile(" tests/neg-custom-args/typeclass-derivation2.scala" , defaultOptions.and(" -Yerased-terms " )),
167+ compileFile(" tests/neg-custom-args/typeclass-derivation2.scala" , defaultOptions.and(" -language:experimental.erasedTerms " )),
168168 compileFile(" tests/neg-custom-args/i5498-postfixOps.scala" , defaultOptions withoutLanguageFeature " postfixOps" ),
169169 compileFile(" tests/neg-custom-args/deptypes.scala" , defaultOptions.and(" -language:experimental.dependent" )),
170170 compileFile(" tests/neg-custom-args/matchable.scala" , defaultOptions.and(" -Xfatal-warnings" , " -source" , " future" )),
@@ -188,7 +188,7 @@ class CompilationTests {
188188 compileFile(" tests/run-custom-args/fors.scala" , defaultOptions.and(" -source" , " future" )),
189189 compileFile(" tests/run-custom-args/no-useless-forwarders.scala" , defaultOptions and " -Xmixin-force-forwarders:false" ),
190190 compileFile(" tests/run-custom-args/defaults-serizaliable-no-forwarders.scala" , defaultOptions and " -Xmixin-force-forwarders:false" ),
191- compileFilesInDir(" tests/run-custom-args/erased" , defaultOptions.and(" -Yerased-terms " )),
191+ compileFilesInDir(" tests/run-custom-args/erased" , defaultOptions.and(" -language:experimental.erasedTerms " )),
192192 compileFilesInDir(" tests/run-deep-subtype" , allowDeepSubtypes),
193193 compileFilesInDir(" tests/run" , defaultOptions.and(" -Ycheck-init" ))
194194 ).checkRuns()
@@ -247,7 +247,7 @@ class CompilationTests {
247247 val lib =
248248 compileList(" lib" , librarySources,
249249 defaultOptions.and(" -Ycheck-reentrant" ,
250- " -Yerased-terms " , // support declaration of scala.compiletime.erasedValue
250+ " -language:experimental.erasedTerms " , // support declaration of scala.compiletime.erasedValue
251251 // "-source", "future", // TODO: re-enable once we allow : @unchecked in pattern definitions. Right now, lots of narrowing pattern definitions fail.
252252 ))(libGroup)
253253
0 commit comments