summaryrefslogtreecommitdiff
path: root/test/files/run/interpreter.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/interpreter.scala')
-rw-r--r--test/files/run/interpreter.scala9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/files/run/interpreter.scala b/test/files/run/interpreter.scala
index dbfffd70d3..d68b6f6632 100644
--- a/test/files/run/interpreter.scala
+++ b/test/files/run/interpreter.scala
@@ -25,11 +25,14 @@ println("hello")
// ambiguous toString problem from #547
val atom = new scala.xml.Atom()
// overriding toString problem from #1404
-// commented out because the fix had to be reverted for arrays
-//class S(override val toString : String)
-//val fish = new S("fish")
+class S(override val toString : String)
+val fish = new S("fish")
// Test that arrays pretty print nicely.
val arr = Array("What's", "up", "doc?")
+// Test that arrays pretty print nicely, even when we give them type Any
+val arrInt : Any = Array(1,2,3)
+// Test that nested arrays are pretty-printed correctly
+val arrArrInt : Any = Array(Array(1, 2), Array(3, 4))
// implicit conversions
case class Foo(n: Int)