diff options
Diffstat (limited to 'tests/repl/errmsgs.check')
-rw-r--r-- | tests/repl/errmsgs.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/repl/errmsgs.check b/tests/repl/errmsgs.check index 0dc8e8ae5..d7a230e61 100644 --- a/tests/repl/errmsgs.check +++ b/tests/repl/errmsgs.check @@ -85,4 +85,11 @@ scala> val x: List[Int] = "foo" :: List(1) | found: String($1$) | required: Int | +scala> { def f: Int = g; val x: Int = 1; def g: Int = 5; } +-- [E039] Reference Error: <console> ------------------------------------------- +5 |{ def f: Int = g; val x: Int = 1; def g: Int = 5; } + | ^ + | `g` is a forward reference extending over the definition of `x` + +longer explanation available when compiling with `-explain` scala> :quit |