aboutsummaryrefslogtreecommitdiff
path: root/tests/repl/overrides.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/repl/overrides.check')
-rw-r--r--tests/repl/overrides.check4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/repl/overrides.check b/tests/repl/overrides.check
index 0fbd3d0..75970d0 100644
--- a/tests/repl/overrides.check
+++ b/tests/repl/overrides.check
@@ -1,5 +1,5 @@
scala> class B { override def foo(i: Int): Unit = {}; }
--- [E036] Reference Error: <console> -------------------------------------------
+-- [E036] Reference Error: <console>:4:23 --------------------------------------
4 |class B { override def foo(i: Int): Unit = {}; }
| ^
| method foo overrides nothing
@@ -8,7 +8,7 @@ longer explanation available when compiling with `-explain`
scala> class A { def foo: Unit = {}; }
defined class A
scala> class B extends A { override def foo(i: Int): Unit = {}; }
--- [E037] Reference Error: <console> -------------------------------------------
+-- [E037] Reference Error: <console>:5:33 --------------------------------------
5 |class B extends A { override def foo(i: Int): Unit = {}; }
| ^
| method foo has a different signature than the overridden declaration