From 08505bd4ec1216be7913607b84e54942f9153329 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 12 Apr 2012 20:57:11 +0100 Subject: Workaround for SI-5583. Somehow type args to be applied arrive in the specialized subclass where type args are no longer applicable. Log and discard. --- test/files/run/t5583.check | 20 ++++++++++++++++++++ test/files/run/t5583.scala | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 test/files/run/t5583.check create mode 100644 test/files/run/t5583.scala (limited to 'test/files/run') diff --git a/test/files/run/t5583.check b/test/files/run/t5583.check new file mode 100644 index 0000000000..39b969fbe7 --- /dev/null +++ b/test/files/run/t5583.check @@ -0,0 +1,20 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> + +scala> var s = 0 +s: Int = 0 + +scala> for (i <- 1 to 10) {s += i} + +scala> for (i <- 1 to 10) {s += i} + +scala> for (i <- 1 to 10) {s += i} + +scala> println(s) +165 + +scala> + +scala> diff --git a/test/files/run/t5583.scala b/test/files/run/t5583.scala new file mode 100644 index 0000000000..8561a5946f --- /dev/null +++ b/test/files/run/t5583.scala @@ -0,0 +1,11 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = """ +var s = 0 +for (i <- 1 to 10) {s += i} +for (i <- 1 to 10) {s += i} +for (i <- 1 to 10) {s += i} +println(s) + """ +} -- cgit v1.2.3