summaryrefslogtreecommitdiff
path: root/test/files/run/elidable.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-22 19:54:36 -0800
committerPaul Phillips <paulp@improving.org>2012-02-22 20:09:40 -0800
commit06384c052ec31db4bd094b949bed0f3cb3fb644b (patch)
tree221fe6e2905ebfdf186cc7c828c729ea65450789 /test/files/run/elidable.check
parenta983f2b30c352f3d62f0ac615044dcd45b1b1618 (diff)
downloadscala-06384c052ec31db4bd094b949bed0f3cb3fb644b.tar.gz
scala-06384c052ec31db4bd094b949bed0f3cb3fb644b.tar.bz2
scala-06384c052ec31db4bd094b949bed0f3cb3fb644b.zip
Reworked and restored elidable.
Found a better elidable implementation which is robust against other parts of the compiler doing their things. Calls to elidable methods are replaced with zero of the same type. Elidable methods themselves remain in place, but with their body replaced with a zero of the method return type. Thus is everything to be found where it is expected to be found, but nothing will be found where nothing ought to be found. Nothing of course will never be found.
Diffstat (limited to 'test/files/run/elidable.check')
-rw-r--r--test/files/run/elidable.check15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/files/run/elidable.check b/test/files/run/elidable.check
index 4ce04f0040..88cf98e0d1 100644
--- a/test/files/run/elidable.check
+++ b/test/files/run/elidable.check
@@ -1 +1,14 @@
-Good for me, I was not elided.
+Good for me, I was not elided. Test.f3
+Good for me, I was not elided. O.f3
+Good for me, I was not elided. C.f1
+Good for me, I was not elided. C.f2
+()
+false
+0
+0
+0
+0
+0
+0.0
+0.0
+null