summaryrefslogtreecommitdiff
path: root/test/files/run/delay-bad.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-21 14:12:25 -0700
committerPaul Phillips <paulp@improving.org>2012-03-21 14:14:51 -0700
commitc535aec63f6e30b0b689ad60b1dd2f1b78c66039 (patch)
treeaf7401c6920319a5ebbc495d0b4c61e9363367ec /test/files/run/delay-bad.check
parenta36a05933499acd3aeeb414d36099ea8ae6e6ca9 (diff)
downloadscala-c535aec63f6e30b0b689ad60b1dd2f1b78c66039.tar.gz
scala-c535aec63f6e30b0b689ad60b1dd2f1b78c66039.tar.bz2
scala-c535aec63f6e30b0b689ad60b1dd2f1b78c66039.zip
An illustrative delayedInit test.
Diffstat (limited to 'test/files/run/delay-bad.check')
-rw-r--r--test/files/run/delay-bad.check47
1 files changed, 47 insertions, 0 deletions
diff --git a/test/files/run/delay-bad.check b/test/files/run/delay-bad.check
new file mode 100644
index 0000000000..9d9c828a03
--- /dev/null
+++ b/test/files/run/delay-bad.check
@@ -0,0 +1,47 @@
+
+
+// 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+