diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/repl-parens.check | 11 | ||||
-rw-r--r-- | test/files/run/repl-parens.scala | 1 |
2 files changed, 8 insertions, 4 deletions
diff --git a/test/files/run/repl-parens.check b/test/files/run/repl-parens.check index f41c2e74bd..2f56e5ddd4 100644 --- a/test/files/run/repl-parens.check +++ b/test/files/run/repl-parens.check @@ -36,16 +36,19 @@ scala> scala> 55 ; ((2 + 2)) ; (1, 2, 3) res10: (Int, Int, Int) = (1,2,3) +scala> 55 ; (x: Int) => x + 1 ; () => ((5)) +res11: () => Int = <function0> + scala> scala> () => 5 -res11: () => Int = <function0> +res12: () => Int = <function0> scala> 55 ; () => 5 -res12: () => Int = <function0> +res13: () => Int = <function0> scala> () => { class X ; new X } -res13: () => java.lang.Object with ScalaObject = <function0> +res14: () => java.lang.Object with ScalaObject = <function0> scala> @@ -53,6 +56,6 @@ 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) -res14: Int = 60 +res15: Int = 60 scala> diff --git a/test/files/run/repl-parens.scala b/test/files/run/repl-parens.scala index 081db3606a..1baa9c37a5 100644 --- a/test/files/run/repl-parens.scala +++ b/test/files/run/repl-parens.scala @@ -14,6 +14,7 @@ object Test extends ReplTest { ((((2 + 2)), ((2 + 2)), 2).productIterator ++ Iterator(3) mkString) 55 ; ((2 + 2)) ; (1, 2, 3) +55 ; (x: Int) => x + 1 ; () => ((5)) () => 5 55 ; () => 5 |