summaryrefslogtreecommitdiff
path: root/test/files/run/repl-parens.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-06-13 20:51:57 +0000
committerPaul Phillips <paulp@improving.org>2011-06-13 20:51:57 +0000
commitb6d1953b85bddc7ccd748fa8f8aa2b7d3eb1f194 (patch)
treeb39ca3818b4803af062b561bc5342f8a7334e718 /test/files/run/repl-parens.check
parent32d2b15d5db3e9e582632cc8f995dcc362751d6a (diff)
downloadscala-b6d1953b85bddc7ccd748fa8f8aa2b7d3eb1f194.tar.gz
scala-b6d1953b85bddc7ccd748fa8f8aa2b7d3eb1f194.tar.bz2
scala-b6d1953b85bddc7ccd748fa8f8aa2b7d3eb1f194.zip
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.
Diffstat (limited to 'test/files/run/repl-parens.check')
-rw-r--r--test/files/run/repl-parens.check28
1 files changed, 20 insertions, 8 deletions
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 = <function0>
+res11: () => Int = <function0>
scala> 55 ; () => 5
-res8: () => Int = <function0>
+res12: () => Int = <function0>
scala> () => { class X ; new X }
-res9: () => java.lang.Object with ScalaObject = <function0>
+res13: () => java.lang.Object with ScalaObject = <function0>
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>