From 2994d539fd6f3f705a6b6d2e5fb025216b11f5eb Mon Sep 17 00:00:00 2001 From: Szymon Rodziewicz Date: Sun, 17 Dec 2023 16:15:26 +0100 Subject: [PATCH] Fixes hi test --- tests/neg-custom-args/sourcepath2/hi/A.check | 5 ++--- tests/neg-custom-args/sourcepath2/hi/A.scala | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) 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