diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t0412.check | 2 | ||||
-rw-r--r-- | test/files/run/t0412.scala | 4 | ||||
-rw-r--r-- | test/files/run/t0528.check | bin | 0 -> 47 bytes | |||
-rw-r--r-- | test/files/run/t0528.scala | 14 |
4 files changed, 20 insertions, 0 deletions
diff --git a/test/files/run/t0412.check b/test/files/run/t0412.check new file mode 100644 index 0000000000..c7141ddbd9 --- /dev/null +++ b/test/files/run/t0412.check @@ -0,0 +1,2 @@ +class java.util.ArrayList +class java.util.ArrayList diff --git a/test/files/run/t0412.scala b/test/files/run/t0412.scala new file mode 100644 index 0000000000..f1ca7379ae --- /dev/null +++ b/test/files/run/t0412.scala @@ -0,0 +1,4 @@ +object Test extends Application { + println(classOf[java.util.ArrayList[_]]) + println(classOf[java.util.ArrayList[T] forSome { type T }]) +} diff --git a/test/files/run/t0528.check b/test/files/run/t0528.check Binary files differnew file mode 100644 index 0000000000..b64e97a93a --- /dev/null +++ b/test/files/run/t0528.check diff --git a/test/files/run/t0528.scala b/test/files/run/t0528.scala new file mode 100644 index 0000000000..b00ef4fa92 --- /dev/null +++ b/test/files/run/t0528.scala @@ -0,0 +1,14 @@ +trait Sequ[A] { + def toArray: Array[T forSome {type T <: A}] +} + +class RichStr extends Sequ[Char] { + // override to a primitve array + def toArray: Array[Char] = Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') +} + +object Test extends Application { + val x: RichStr = new RichStr + + println((x: Sequ[Char]).toArray) // calling through the bridge misses unboxing +} |