summaryrefslogtreecommitdiff
path: root/test/files/run/lazy-traits.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/lazy-traits.scala')
-rw-r--r--test/files/run/lazy-traits.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/lazy-traits.scala b/test/files/run/lazy-traits.scala
index 6238813e8d..bcfb2c45b8 100644
--- a/test/files/run/lazy-traits.scala
+++ b/test/files/run/lazy-traits.scala
@@ -124,6 +124,18 @@ trait LocalLazyVal {
}
}
+/** Test successful compilation (see ticket #39) */
+package x.y {
+
+ trait Trait {
+ lazy val v = 1
+ }
+
+ class OuterClass {
+ object InnerObject extends Trait
+ }
+}
+
object Test extends Application {
def test(name: String, v: A) {