From bee568cb56a72f4e17bf3340c15a55d999a232ff Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 28 Feb 2011 14:43:47 +0000 Subject: 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. --- test/files/run/bug4285.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/run/bug4285.scala (limited to 'test/files/run/bug4285.scala') 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)")) + } +} + + -- cgit v1.2.3