summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-06 15:51:09 -0800
committerPaul Phillips <paulp@improving.org>2012-03-06 15:51:09 -0800
commitd1b589642c5099239060aee0b8b506c3a2a04ae4 (patch)
tree14aec6febb577587357cc8c9690c1a3e14d0071a /test
parent5464973a8d159b6f097dc18c69c68f9e57d193b0 (diff)
parentc5f68c11d3d8b9f12fe8608d7cea5d33c260c793 (diff)
downloadscala-d1b589642c5099239060aee0b8b506c3a2a04ae4.tar.gz
scala-d1b589642c5099239060aee0b8b506c3a2a04ae4.tar.bz2
scala-d1b589642c5099239060aee0b8b506c3a2a04ae4.zip
Merge remote-tracking branch 'VladUreche/issue/5545-clean' into develop
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t5545.check0
-rw-r--r--test/files/run/t5545.scala27
2 files changed, 27 insertions, 0 deletions
diff --git a/test/files/run/t5545.check b/test/files/run/t5545.check
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/test/files/run/t5545.check
diff --git a/test/files/run/t5545.scala b/test/files/run/t5545.scala
new file mode 100644
index 0000000000..7efa6d84f1
--- /dev/null
+++ b/test/files/run/t5545.scala
@@ -0,0 +1,27 @@
+import scala.tools.partest._
+import java.io._
+
+object Test extends DirectTest {
+
+ override def extraSettings: String = "-usejavacp -d " + testOutput.path + " -cp " + testOutput.path
+
+ override def code = """
+ // SI-5545
+ trait F[@specialized(Int) T1, R] {
+ def f(v1: T1): R
+ def g = v1 => f(v1)
+ }
+ """.trim
+
+ override def show(): Unit = {
+ // redirect err to out, for logging
+ val prevErr = System.err
+ System.setErr(System.out)
+ compile()
+ // the bug manifests at the second compilation, when the bytecode is already there
+ compile()
+ System.setErr(prevErr)
+ }
+
+ override def isDebug = false // so we don't get the newSettings warning
+}