summaryrefslogtreecommitdiff
path: root/test/files/run/bug4285.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-02-28 14:43:47 +0000
committerPaul Phillips <paulp@improving.org>2011-02-28 14:43:47 +0000
commitbee568cb56a72f4e17bf3340c15a55d999a232ff (patch)
treef091d21f608f3a209c29450fb7d1425f9f8ecb76 /test/files/run/bug4285.scala
parentba236bdcdcf0816ffad8b4d17b90b69c80a80ac7 (diff)
downloadscala-bee568cb56a72f4e17bf3340c15a55d999a232ff.tar.gz
scala-bee568cb56a72f4e17bf3340c15a55d999a232ff.tar.bz2
scala-bee568cb56a72f4e17bf3340c15a55d999a232ff.zip
Altered a check for impl classes to look at the...
Altered a check for impl classes to look at the name instead of the flags, since the flags are wrong. Obviously we should fix the flags or otherwise better address. Note that the test is well intentioned but doesn't actually fail with older versions; the crash is not easy to reproduce even when I simulate the whole repl. Review by dragos.
Diffstat (limited to 'test/files/run/bug4285.scala')
-rw-r--r--test/files/run/bug4285.scala7
1 files changed, 7 insertions, 0 deletions
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)"))
+ }
+}
+
+