summaryrefslogtreecommitdiff
path: root/test/files/run/repl-parens.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-06-01 18:34:20 +0000
committerPaul Phillips <paulp@improving.org>2011-06-01 18:34:20 +0000
commit92a2fd5397e1c6f67677e96bbf427ab256ec37f9 (patch)
tree50c03041acfdf6081edb057e5d5aaaab65573e5c /test/files/run/repl-parens.check
parentd838e10f7bad42762584a1390ef6fd85b4796d46 (diff)
downloadscala-92a2fd5397e1c6f67677e96bbf427ab256ec37f9.tar.gz
scala-92a2fd5397e1c6f67677e96bbf427ab256ec37f9.tar.bz2
scala-92a2fd5397e1c6f67677e96bbf427ab256ec37f9.zip
More adjustments to repl parsing to accomodate ...
More adjustments to repl parsing to accomodate inaccurately positioned parse trees. No review.
Diffstat (limited to 'test/files/run/repl-parens.check')
-rw-r--r--test/files/run/repl-parens.check19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/run/repl-parens.check b/test/files/run/repl-parens.check
index eeb21c67d0..79db06f272 100644
--- a/test/files/run/repl-parens.check
+++ b/test/files/run/repl-parens.check
@@ -25,3 +25,22 @@ scala> 55 ; ((2 + 2)) ; (1, 2, 3)
res6: (Int, Int, Int) = (1,2,3)
scala>
+
+scala> () => 5
+res7: () => Int = <function0>
+
+scala> 55 ; () => 5
+res8: () => Int = <function0>
+
+scala> () => { class X ; new X }
+res9: () => java.lang.Object with ScalaObject = <function0>
+
+scala>
+
+scala> def foo(x: Int)(y: Int)(z: Int) = x+y+z
+foo: (x: Int)(y: Int)(z: Int)Int
+
+scala> foo(5)(10)(15)+foo(5)(10)(15)
+res10: Int = 60
+
+scala>