summaryrefslogtreecommitdiff
path: root/test/files/run/arrayclone-new.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/arrayclone-new.scala')
-rw-r--r--test/files/run/arrayclone-new.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/files/run/arrayclone-new.scala b/test/files/run/arrayclone-new.scala
index a4ba021409..506e4f527c 100644
--- a/test/files/run/arrayclone-new.scala
+++ b/test/files/run/arrayclone-new.scala
@@ -1,3 +1,5 @@
+import scala.reflect.{ClassTag, classTag}
+
object Test extends App{
BooleanArrayClone;
ByteArrayClone;
@@ -93,7 +95,7 @@ object PolymorphicArrayClone{
testIt(Array("one", "two"), "one", "two");
- class Mangler[T: ArrayTag](ts : T*){
+ class Mangler[T: ClassTag](ts : T*){
// this will always be a BoxedAnyArray even after we've unboxed its contents.
val it = ts.toArray[T];
}
@@ -103,4 +105,4 @@ object PolymorphicArrayClone{
val y : Array[Int] = mangled.it; // make sure it's unboxed
testIt(mangled.it, 0, 1);
-}
+} \ No newline at end of file