Skip to content

Commit 5460046

Browse files
committed
Update repl check files
Deleting an error message changes all subsequent error message umbers, which means that REPL tests were invalidated. This is a bit unfortunate from a testing standpoint.
1 parent 9dade98 commit 5460046

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/repl/errmsgs.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ scala> val x: List[Int] = "foo" :: List(1)
8686
| required: Int
8787
|
8888
scala> { def f: Int = g; val x: Int = 1; def g: Int = 5; }
89-
-- [E039] Reference Error: <console> -------------------------------------------
89+
-- [E038] Reference Error: <console> -------------------------------------------
9090
5 |{ def f: Int = g; val x: Int = 1; def g: Int = 5; }
9191
| ^
9292
| `g` is a forward reference extending over the definition of `x`

tests/repl/overrides.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
scala> class B { override def foo(i: Int): Unit = {}; }
2-
-- [E037] Reference Error: <console> -------------------------------------------
2+
-- [E036] Reference Error: <console> -------------------------------------------
33
4 |class B { override def foo(i: Int): Unit = {}; }
44
| ^
55
| method foo overrides nothing
@@ -8,7 +8,7 @@ longer explanation available when compiling with `-explain`
88
scala> class A { def foo: Unit = {}; }
99
defined class A
1010
scala> class B extends A { override def foo(i: Int): Unit = {}; }
11-
-- [E038] Reference Error: <console> -------------------------------------------
11+
-- [E037] Reference Error: <console> -------------------------------------------
1212
5 |class B extends A { override def foo(i: Int): Unit = {}; }
1313
| ^
1414
| method foo has a different signature than the overridden declaration

0 commit comments

Comments
 (0)