Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noti0na1 committed Apr 23, 2024
1 parent 825598c commit 65dc34f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion community-build/community-projects/scala-xml
Submodule scala-xml updated 1 files
+1 −1 build.sbt
2 changes: 1 addition & 1 deletion compiler/test/dotty/tools/DottyTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ trait DottyTest extends ContextEscapeDetection {
protected def initializeCtx(fc: FreshContext): Unit = {
fc.setSetting(fc.settings.encoding, "UTF8")
fc.setSetting(fc.settings.classpath, TestConfiguration.basicClasspath)
fc.setSetting(fc.settings.language, List("experimental.erasedDefinitions"))
fc.setSetting(fc.settings.language, List("experimental.erasedDefinitions").asInstanceOf)
fc.setProperty(ContextDoc, new ContextDocstrings)
}

Expand Down
2 changes: 1 addition & 1 deletion compiler/test/dotty/tools/dotc/CompilationTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class CompilationTests {
"tests/neg-custom-args/toplevel-samesource/S.scala",
"tests/neg-custom-args/toplevel-samesource/nested/S.scala"),
defaultOptions),
compileFile("tests/neg/i7575.scala", defaultOptions.withoutLanguageFeatures.and("-language:_")),
compileFile("tests/neg/i7575.scala", defaultOptions.withoutLanguageFeatures),
).checkExpectedErrors()
}

Expand Down

0 comments on commit 65dc34f

Please sign in to comment.