diff options
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/run/t4770.check | 2 | ||||
-rw-r--r-- | test/pending/run/t4770.scala | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/pending/run/t4770.check b/test/pending/run/t4770.check new file mode 100644 index 0000000000..38e5a831fa --- /dev/null +++ b/test/pending/run/t4770.check @@ -0,0 +1,2 @@ +(a,2) +(2,a) diff --git a/test/pending/run/t4770.scala b/test/pending/run/t4770.scala new file mode 100644 index 0000000000..25bf3050c3 --- /dev/null +++ b/test/pending/run/t4770.scala @@ -0,0 +1,15 @@ +package crasher { + class Z[@specialized A, @specialized(AnyRef) B](var a: A, var b: B) { + override def toString = "" + ((a, b)) + } + object O { + def apply[@specialized A, @specialized(AnyRef) B](a0: A, b0: B) = new Z(a0, b0) + } +} + +object Test { + def main(args: Array[String]): Unit = { + println(crasher.O("a", 2)) + println(crasher.O(2, "a")) + } +} |