summaryrefslogtreecommitdiff
path: root/test/files/run/delay-good.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-good.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-good.check')
-rw-r--r--test/files/run/delay-good.check41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/files/run/delay-good.check b/test/files/run/delay-good.check
new file mode 100644
index 0000000000..8eb04c7cff
--- /dev/null
+++ b/test/files/run/delay-good.check
@@ -0,0 +1,41 @@
+
+
+// new C { }
+-A -B -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+
+
+// new { val x = 5 } with D()
+-A -B -C -D
+ A+ B+ C+ D+
+
+// new E() { val x = 5 }
+-A -B -C -D -E
+ A+ B+ C+ D+ E+
+
+// new { val x = 5 } with E()
+-A -B -C -D -E
+ A+ B+ C+ D+ E+
+
+// new { val x = 5 } with E() { }
+-A -B -C -D -E
+ A+ B+ C+ D+ E+
+
+// new { val x = 5 } with E() { 5 }
+-A -B -C -D -E
+ A+ B+ C+ D+ E+