summaryrefslogtreecommitdiff
path: root/test/files/run/t5583.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-12 20:57:11 +0100
committerPaul Phillips <paulp@improving.org>2012-04-12 21:56:21 +0100
commit08505bd4ec1216be7913607b84e54942f9153329 (patch)
tree02fb54e774895eccd9e1a6baed9ed67ad6bce59d /test/files/run/t5583.scala
parentf1c6714e22e70ecba2aa595bf592b916be82deb4 (diff)
downloadscala-08505bd4ec1216be7913607b84e54942f9153329.tar.gz
scala-08505bd4ec1216be7913607b84e54942f9153329.tar.bz2
scala-08505bd4ec1216be7913607b84e54942f9153329.zip
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.
Diffstat (limited to 'test/files/run/t5583.scala')
-rw-r--r--test/files/run/t5583.scala11
1 files changed, 11 insertions, 0 deletions
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)
+ """
+}