summaryrefslogtreecommitdiff
path: root/test/pending/pos/treecheckers/c3.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/pos/treecheckers/c3.scala')
-rw-r--r--test/pending/pos/treecheckers/c3.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pending/pos/treecheckers/c3.scala b/test/pending/pos/treecheckers/c3.scala
new file mode 100644
index 0000000000..e480bbfb08
--- /dev/null
+++ b/test/pending/pos/treecheckers/c3.scala
@@ -0,0 +1,8 @@
+import scala.collection.mutable.ArrayOps
+
+object Test3 {
+ implicit def genericArrayOps[T](xs: Array[T]): ArrayOps[T] = (xs match {
+ case x: Array[AnyRef] => refArrayOps[AnyRef](x)
+ case x: Array[Boolean] => booleanArrayOps(x)
+ }).asInstanceOf[ArrayOps[T]]
+}