summaryrefslogtreecommitdiff
path: root/test/files/run/repl-parens.scala
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.scala
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.scala')
-rw-r--r--test/files/run/repl-parens.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/repl-parens.scala b/test/files/run/repl-parens.scala
index cdfe53efe7..3b2740837c 100644
--- a/test/files/run/repl-parens.scala
+++ b/test/files/run/repl-parens.scala
@@ -10,5 +10,13 @@ object Test extends ReplTest {
((((2 + 2)), ((2 + 2)), 2).productIterator ++ Iterator(3) mkString)
55 ; ((2 + 2)) ; (1, 2, 3)
+
+() => 5
+55 ; () => 5
+() => { class X ; new X }
+
+def foo(x: Int)(y: Int)(z: Int) = x+y+z
+foo(5)(10)(15)+foo(5)(10)(15)
+
""".trim
} \ No newline at end of file