From 1e648c386216d4c60121321a7ec40e2536bada9c Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 17 Feb 2012 09:52:40 -0800 Subject: Fixed AnyRef specialization. At least for the value of fix which means "better than it was in 2.9." I accidentally spent a long while trying to fix something I didn't realize I hadn't broken. But then I lucked into partially fixing it, so that's good news. See run/t5488-fn.scala if you want to see what still doesn't work. (It's covered at SI-4770, which is now reopened.) Closes SI-5488. --- test/files/run/t4770.scala | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 test/files/run/t4770.scala (limited to 'test/files/run/t4770.scala') diff --git a/test/files/run/t4770.scala b/test/files/run/t4770.scala deleted file mode 100644 index 25bf3050c3..0000000000 --- a/test/files/run/t4770.scala +++ /dev/null @@ -1,15 +0,0 @@ -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")) - } -} -- cgit v1.2.3