diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/bug4285.check | 9 | ||||
-rw-r--r-- | test/files/run/bug4285.flags | 1 | ||||
-rw-r--r-- | test/files/run/bug4285.scala | 7 |
3 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/bug4285.check b/test/files/run/bug4285.check new file mode 100644 index 0000000000..6f906f80a6 --- /dev/null +++ b/test/files/run/bug4285.check @@ -0,0 +1,9 @@ +Welcome to Scala version 2.9.0.r24351-b20110228153004 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_22). +Type in expressions to have them evaluated. +Type :help for more information. + +scala> 56 +x: Array[Int] = Array(2, 4, 6, 8, 10, 12, 14) +y: scala.collection.mutable.WrappedArray[Int] = WrappedArray(2, 4, 6, 8, 10, 12, 14) + +scala> diff --git a/test/files/run/bug4285.flags b/test/files/run/bug4285.flags new file mode 100644 index 0000000000..eb4d19bcb9 --- /dev/null +++ b/test/files/run/bug4285.flags @@ -0,0 +1 @@ +-optimise
\ No newline at end of file diff --git a/test/files/run/bug4285.scala b/test/files/run/bug4285.scala new file mode 100644 index 0000000000..9e89b13a3a --- /dev/null +++ b/test/files/run/bug4285.scala @@ -0,0 +1,7 @@ +object Test { + def main(args: Array[String]): Unit = { + println(scala.tools.nsc.interpreter.ILoop.run("val x = Array(1,2,3,4,5,6,7) ; val y = x transform (_ * 2) ; println(y.sum)")) + } +} + + |