diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t1535.check | 2 | ||||
-rw-r--r-- | test/files/run/t1535.scala | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/t1535.check b/test/files/run/t1535.check new file mode 100644 index 0000000000..93359aa0d0 --- /dev/null +++ b/test/files/run/t1535.check @@ -0,0 +1,2 @@ +42 +true
\ No newline at end of file diff --git a/test/files/run/t1535.scala b/test/files/run/t1535.scala new file mode 100644 index 0000000000..3633352c39 --- /dev/null +++ b/test/files/run/t1535.scala @@ -0,0 +1,15 @@ +class ASTNode { + lazy val x = 42 +} + +class BlockStmt extends ASTNode + +class ClassDecl extends BlockStmt { + lazy val y = true +} + +object Test extends Application { + val n = new ClassDecl () + println (n.x) + println (n.y) +}
\ No newline at end of file |