Skip to content

Commit da00b3d

Browse files
committed
Fix tests
1 parent 2af448e commit da00b3d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/test/dotty/tools/DottyTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ trait DottyTest extends ContextEscapeDetection {
4040
protected def initializeCtx(fc: FreshContext): Unit = {
4141
fc.setSetting(fc.settings.encoding, "UTF8")
4242
fc.setSetting(fc.settings.classpath, TestConfiguration.basicClasspath)
43-
fc.setSetting(fc.settings.language, List("experimental.erasedDefinitions"))
43+
fc.setSetting(fc.settings.language, List("experimental.erasedDefinitions").asInstanceOf)
4444
fc.setProperty(ContextDoc, new ContextDocstrings)
4545
}
4646

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class CompilationTests {
143143
"tests/neg-custom-args/toplevel-samesource/S.scala",
144144
"tests/neg-custom-args/toplevel-samesource/nested/S.scala"),
145145
defaultOptions),
146-
compileFile("tests/neg/i7575.scala", defaultOptions.withoutLanguageFeatures.and("-language:_")),
146+
compileFile("tests/neg/i7575.scala", defaultOptions.withoutLanguageFeatures),
147147
).checkExpectedErrors()
148148
}
149149

0 commit comments

Comments
 (0)