diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-11 07:52:27 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-23 08:43:10 -0700 |
commit | 402b5e4a1341ef4549b7e0979f9c5afc06f47315 (patch) | |
tree | 0ec0f5dbd51874d9ed9d4676451d553474eb8fd1 /test/pending/run | |
parent | 0d7952f90fc11f4dc055a2658b16b7183f1d6683 (diff) | |
download | scala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.tar.gz scala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.tar.bz2 scala-402b5e4a1341ef4549b7e0979f9c5afc06f47315.zip |
Pending and passing tests.
Move now-passing SI-963 test into neg.
Test for partial specialization.
Pending test for SI-5008.
Pending test for SI-4649.
Abstract array type test.
Diffstat (limited to 'test/pending/run')
-rw-r--r-- | test/pending/run/partial-anyref-spec.check | 13 | ||||
-rw-r--r-- | test/pending/run/partial-anyref-spec.scala | 31 |
2 files changed, 44 insertions, 0 deletions
diff --git a/test/pending/run/partial-anyref-spec.check b/test/pending/run/partial-anyref-spec.check new file mode 100644 index 0000000000..26e41933e7 --- /dev/null +++ b/test/pending/run/partial-anyref-spec.check @@ -0,0 +1,13 @@ +Fn$mcII$sp +Fn$mcLI$sp +Fn$mcLI$sp +Fn$mcIL$sp +Fn +Fn +Fn$mcIL$sp +Fn +Fn +Fn3 +Fn3$mcLIDF$sp +Fn3$mcBIDF$sp +Fn3 diff --git a/test/pending/run/partial-anyref-spec.scala b/test/pending/run/partial-anyref-spec.scala new file mode 100644 index 0000000000..49ed514f03 --- /dev/null +++ b/test/pending/run/partial-anyref-spec.scala @@ -0,0 +1,31 @@ +class Fn[@specialized(Int, AnyRef) -T, @specialized(Int, AnyRef) +R] { + override def toString = getClass.getName +} + +class Fn3[ + @specialized(Int, AnyRef) -T1, + @specialized(Double, AnyRef) -T2, + @specialized(Float) -T3, + @specialized(Byte, AnyRef) +R +] { + override def toString = getClass.getName +} + +object Test { + def main(args: Array[String]): Unit = { + println(new Fn[Int, Int]) + println(new Fn[Int, Byte]) + println(new Fn[Int, AnyRef]) + println(new Fn[Byte, Int]) + println(new Fn[Byte, Byte]) + println(new Fn[Byte, AnyRef]) + println(new Fn[AnyRef, Int]) + println(new Fn[AnyRef, Byte]) + println(new Fn[AnyRef, AnyRef]) + + println(new Fn3[Int, Int, Int, Int]) + println(new Fn3[Int, Double, Float, Int]) + println(new Fn3[Int, Double, Float, Byte]) + println(new Fn3[AnyRef, Double, AnyRef, Int]) + } +} |