diff options
author | Paul Phillips <paulp@improving.org> | 2011-06-10 22:38:17 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-06-10 22:38:17 +0000 |
commit | c8f4316b374d78caaf5ba605cd34e323b78a77de (patch) | |
tree | ef5a8e696e7ba9b7e3578ae6be3d9c5845e4372a /test/files/run/bug4680.check | |
parent | 21e90dfb5958bd5a8030a6edf16b38518e2d69e5 (diff) | |
download | scala-c8f4316b374d78caaf5ba605cd34e323b78a77de.tar.gz scala-c8f4316b374d78caaf5ba605cd34e323b78a77de.tar.bz2 scala-c8f4316b374d78caaf5ba605cd34e323b78a77de.zip |
A test case demonstrating some of the issues wi...
A test case demonstrating some of the issues with DelayedInit.
References #4680. Review by odersky.
Diffstat (limited to 'test/files/run/bug4680.check')
-rw-r--r-- | test/files/run/bug4680.check | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/test/files/run/bug4680.check b/test/files/run/bug4680.check new file mode 100644 index 0000000000..b5cfc651f2 --- /dev/null +++ b/test/files/run/bug4680.check @@ -0,0 +1,60 @@ + + +// new C { } +-A -B -C + +// new C { 5 } +-A -B -C +A+ B+ C+ + +// new D() +-A -B -C -D +A+ B+ C+ D+ + +// new D() { } +-A -B -C -D +A+ B+ C+ D+ + +// new D() { val x = 5 } +-A -B -C -D +A+ B+ C+ D+ +A+ B+ C+ D+ + +// new { val x = 5 } with D() +-A -B -C -D +A+ B+ C+ D+ + +// new E() { val x = 5 } +-A -B -C -D +A+ B+ C+ D+ E+ +-E + +A+ B+ C+ D+ E+ + +A+ B+ C+ D+ E+ + + +// new { val x = 5 } with E() +-A -B -C -D +A+ B+ C+ D+ E+ +-E + +A+ B+ C+ D+ E+ + + +// new { val x = 5 } with E() { } +-A -B -C -D +A+ B+ C+ D+ E+ +-E + +A+ B+ C+ D+ E+ + + +// new { val x = 5 } with E() { 5 } +-A -B -C -D +A+ B+ C+ D+ E+ +-E + +A+ B+ C+ D+ E+ + +A+ B+ C+ D+ E+ |