Skip to content

Commit 6af6076

Browse files
committed
Fix test case.
1 parent 2771d3c commit 6af6076

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class CompilationTests {
282282
compileFile("tests/init/tasty-error/v1/B.scala", tastyErrorOptions.withClasspath(a1))(tastyErrorGroup),
283283
compileFile("tests/init/tasty-error/v0/A.scala", tastyErrorOptions)(tastyErrorGroup),
284284
).map(_.keepOutput.checkCompile())
285-
compileFile("tests/init/tasty-error/Main.scala", tastyErrorOptions.withClasspath(a0b1))(tastyErrorGroup).expectFailure.checkCompile()
285+
compileFile("tests/init/tasty-error/Main.scala", tastyErrorOptions.withClasspath(a0b1))(tastyErrorGroup).checkExpectedErrors()
286286

287287
tests.foreach(_.delete())
288288
}

tests/init/tasty-error/Main.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class Main extends B{}
1+
class Main extends B{} // anypos-error

0 commit comments

Comments
 (0)