From bcb3384b792b50dd256e407dbe60f3862611cf8f Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 11 Feb 2009 17:03:22 +0000 Subject: fixed bug #1535, added test case --- test/files/run/t1535.check | 2 ++ test/files/run/t1535.scala | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 test/files/run/t1535.check create mode 100644 test/files/run/t1535.scala (limited to 'test/files/run') 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 -- cgit v1.2.3