summaryrefslogtreecommitdiff
path: root/test/files/run/t1535.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t1535.scala')
-rw-r--r--test/files/run/t1535.scala15
1 files changed, 15 insertions, 0 deletions
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