From 46c81507437d3202826e2ab53f328b241a6c9387 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 31 May 2011 19:50:08 +0000 Subject: Fixed a repl regression with parentheses handli... Fixed a repl regression with parentheses handling, reminding me we really need that honest parser phase which doesn't betray us with parentheses abandonment and dramatic desugarings. I'll promote it from page 14 to page 11. Closes #4661, no review. --- test/files/run/repl-parens.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/files/run/repl-parens.scala (limited to 'test/files/run/repl-parens.scala') diff --git a/test/files/run/repl-parens.scala b/test/files/run/repl-parens.scala new file mode 100644 index 0000000000..cdfe53efe7 --- /dev/null +++ b/test/files/run/repl-parens.scala @@ -0,0 +1,14 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = """ +(2) +(2 + 2) +((2 + 2)) +(((2 + 2)), ((2 + 2))) +(((2 + 2)), ((2 + 2)), 2) +((((2 + 2)), ((2 + 2)), 2).productIterator ++ Iterator(3) mkString) + +55 ; ((2 + 2)) ; (1, 2, 3) + """.trim +} \ No newline at end of file -- cgit v1.2.3