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