diff options
author | Paul Phillips <paulp@improving.org> | 2009-02-11 17:03:22 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-02-11 17:03:22 +0000 |
commit | bcb3384b792b50dd256e407dbe60f3862611cf8f (patch) | |
tree | c58d5e8ef8b7687bc007bb8b4b1a2c364acefc9d /test/files/run | |
parent | ced34334189f3d62c4883a50268bda436aefffbd (diff) | |
download | scala-bcb3384b792b50dd256e407dbe60f3862611cf8f.tar.gz scala-bcb3384b792b50dd256e407dbe60f3862611cf8f.tar.bz2 scala-bcb3384b792b50dd256e407dbe60f3862611cf8f.zip |
fixed bug #1535, added test case
Diffstat (limited to 'test/files/run')
-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 |