diff options
Diffstat (limited to 'test/files/run/lazy-traits.scala')
-rw-r--r-- | test/files/run/lazy-traits.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/lazy-traits.scala b/test/files/run/lazy-traits.scala index f91da7ed1a..6238813e8d 100644 --- a/test/files/run/lazy-traits.scala +++ b/test/files/run/lazy-traits.scala @@ -116,6 +116,13 @@ trait PrivateLazy { /** Test successful compilation. */ class InheritPrivateLazy extends AnyRef with PrivateLazy {} +/** Test successful compilation, see bug #1287. */ +trait LocalLazyVal { + def foo = { + lazy val next = 10 + 1 + next + } +} object Test extends Application { |