From b6d1953b85bddc7ccd748fa8f8aa2b7d3eb1f194 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 13 Jun 2011 20:51:57 +0000 Subject: Test case for implicits which unwrap typeclasse... Test case for implicits which unwrap typeclasses, something which must really live on the edge given the multiple ways we've busted it lately. Also some Array/signature and repl tests. No review. --- test/files/run/repl-parens.check | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'test/files/run/repl-parens.check') diff --git a/test/files/run/repl-parens.check b/test/files/run/repl-parens.check index 79db06f272..f41c2e74bd 100644 --- a/test/files/run/repl-parens.check +++ b/test/files/run/repl-parens.check @@ -10,30 +10,42 @@ res1: Int = 4 scala> ((2 + 2)) res2: Int = 4 +scala> ((2 + 2)) +res3: Int = 4 + +scala> ( (2 + 2)) +res4: Int = 4 + +scala> ( (2 + 2 ) ) +res5: Int = 4 + +scala> 5 ; ( (2 + 2 ) ) ; ((5)) +res6: Int = 5 + scala> (((2 + 2)), ((2 + 2))) -res3: (Int, Int) = (4,4) +res7: (Int, Int) = (4,4) scala> (((2 + 2)), ((2 + 2)), 2) -res4: (Int, Int, Int) = (4,4,2) +res8: (Int, Int, Int) = (4,4,2) scala> ((((2 + 2)), ((2 + 2)), 2).productIterator ++ Iterator(3) mkString) -res5: String = 4423 +res9: String = 4423 scala> scala> 55 ; ((2 + 2)) ; (1, 2, 3) -res6: (Int, Int, Int) = (1,2,3) +res10: (Int, Int, Int) = (1,2,3) scala> scala> () => 5 -res7: () => Int = +res11: () => Int = scala> 55 ; () => 5 -res8: () => Int = +res12: () => Int = scala> () => { class X ; new X } -res9: () => java.lang.Object with ScalaObject = +res13: () => java.lang.Object with ScalaObject = scala> @@ -41,6 +53,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) -res10: Int = 60 +res14: Int = 60 scala> -- cgit v1.2.3