aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t2795-new.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/t2795-new.scala')
-rw-r--r--tests/pending/pos/t2795-new.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/pending/pos/t2795-new.scala b/tests/pending/pos/t2795-new.scala
new file mode 100644
index 000000000..e307133e0
--- /dev/null
+++ b/tests/pending/pos/t2795-new.scala
@@ -0,0 +1,19 @@
+package t1
+
+import scala.reflect.{ClassTag, classTag}
+
+trait Element[T] {
+}
+
+trait Config {
+ type T <: Element[T]
+ implicit val m: ClassTag[T]
+ // XXX Following works fine:
+ // type T <: Element[_]
+}
+
+trait Transform { self: Config =>
+ def processBlock(block: Array[T]): Unit = {
+ var X = new Array[T](1)
+ }
+}