summaryrefslogtreecommitdiff
path: root/test/files/pos/t2795-new.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t2795-new.scala')
-rw-r--r--test/files/pos/t2795-new.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/t2795-new.scala b/test/files/pos/t2795-new.scala
new file mode 100644
index 0000000000..af9c4e8b1c
--- /dev/null
+++ b/test/files/pos/t2795-new.scala
@@ -0,0 +1,17 @@
+package t1
+
+trait Element[T] {
+}
+
+trait Config {
+ type T <: Element[T]
+ implicit val m: ArrayTag[T]
+ // XXX Following works fine:
+ // type T <: Element[_]
+}
+
+trait Transform { self: Config =>
+ def processBlock(block: Array[T]): Unit = {
+ var X = new Array[T](1)
+ }
+}