diff options
Diffstat (limited to 'test/files/pos/t2795-new.scala')
-rw-r--r-- | test/files/pos/t2795-new.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/files/pos/t2795-new.scala b/test/files/pos/t2795-new.scala index af9c4e8b1c..a6a5fdb127 100644 --- a/test/files/pos/t2795-new.scala +++ b/test/files/pos/t2795-new.scala @@ -1,11 +1,13 @@ package t1 +import scala.reflect.{ClassTag, classTag} + trait Element[T] { } trait Config { type T <: Element[T] - implicit val m: ArrayTag[T] + implicit val m: ClassTag[T] // XXX Following works fine: // type T <: Element[_] } @@ -14,4 +16,4 @@ trait Transform { self: Config => def processBlock(block: Array[T]): Unit = { var X = new Array[T](1) } -} +}
\ No newline at end of file |