diff --git a/tests/neg-custom-args/sourcepath2/hi/A.check b/tests/neg-custom-args/sourcepath2/hi/A.check index 1fac6b1147ef..61d4798a34e7 100644 --- a/tests/neg-custom-args/sourcepath2/hi/A.check +++ b/tests/neg-custom-args/sourcepath2/hi/A.check @@ -1,7 +1,6 @@ --- Warning: tests/neg-custom-args/sourcepath2/hi/A.scala:3:6 ----------------------------------------------------------- -3 |class Hello { // warn +-- Error: tests/neg-custom-args/sourcepath2/hi/A.scala:3:6 ------------------------------------------------------------- +3 |class Hello { // error | ^ | class Hello is in the wrong directory. | It was declared to be in package | But it is found in directory hi -No warnings can be incurred under -Werror. diff --git a/tests/neg-custom-args/sourcepath2/hi/A.scala b/tests/neg-custom-args/sourcepath2/hi/A.scala index 039910e55ce7..c332f2494e15 100644 --- a/tests/neg-custom-args/sourcepath2/hi/A.scala +++ b/tests/neg-custom-args/sourcepath2/hi/A.scala @@ -1,6 +1,5 @@ // Missing `package hi` -class Hello { // warn +class Hello { // error val x: Int = 1 } -// nopos-error: werror \ No newline at end of file