Skip to content

Commit

Permalink
Fix test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
lidaisy committed Feb 22, 2025
1 parent 2771d3c commit 6af6076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -282,7 +282,7 @@ class CompilationTests {
compileFile("tests/init/tasty-error/v1/B.scala", tastyErrorOptions.withClasspath(a1))(tastyErrorGroup),
compileFile("tests/init/tasty-error/v0/A.scala", tastyErrorOptions)(tastyErrorGroup),
).map(_.keepOutput.checkCompile())
compileFile("tests/init/tasty-error/Main.scala", tastyErrorOptions.withClasspath(a0b1))(tastyErrorGroup).expectFailure.checkCompile()
compileFile("tests/init/tasty-error/Main.scala", tastyErrorOptions.withClasspath(a0b1))(tastyErrorGroup).checkExpectedErrors()

tests.foreach(_.delete())
}
Expand Down
2 changes: 1 addition & 1 deletion tests/init/tasty-error/Main.scala
Original file line number Diff line number Diff line change
@@ -1 +1 @@
class Main extends B{}
class Main extends B{} // anypos-error

0 comments on commit 6af6076

Please sign in to comment.