diff options
author | Paul Phillips <paulp@improving.org> | 2011-05-31 19:50:08 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-05-31 19:50:08 +0000 |
commit | 46c81507437d3202826e2ab53f328b241a6c9387 (patch) | |
tree | c22cf225158c68206537ea2d12cb72cc9670d519 /test/files/run/repl-parens.scala | |
parent | ed87ab5299ed3e19481ad14b1ab18d676c7c4a91 (diff) | |
download | scala-46c81507437d3202826e2ab53f328b241a6c9387.tar.gz scala-46c81507437d3202826e2ab53f328b241a6c9387.tar.bz2 scala-46c81507437d3202826e2ab53f328b241a6c9387.zip |
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.
Diffstat (limited to 'test/files/run/repl-parens.scala')
-rw-r--r-- | test/files/run/repl-parens.scala | 14 |
1 files changed, 14 insertions, 0 deletions
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 |