diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-08-23 09:55:45 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-08-23 09:55:45 +0000 |
commit | 8d96aea0a2d626e78a2f6477cb739447a17be153 (patch) | |
tree | 020d35073560c70715eadd2841656a8715bebe7b /test/files/run/lazy-traits.scala | |
parent | 62cd29a17818625f9a0ec84ffdac827281ae6265 (diff) | |
download | scala-8d96aea0a2d626e78a2f6477cb739447a17be153.tar.gz scala-8d96aea0a2d626e78a2f6477cb739447a17be153.tar.bz2 scala-8d96aea0a2d626e78a2f6477cb739447a17be153.zip |
Fixed bug #1287, lazy vals in trait methods.
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 { |