diff options
Diffstat (limited to 'test/files/pos/t2795.scala')
-rw-r--r-- | test/files/pos/t2795.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t2795.scala b/test/files/pos/t2795.scala new file mode 100644 index 0000000000..c355a10c54 --- /dev/null +++ b/test/files/pos/t2795.scala @@ -0,0 +1,16 @@ +package bug1 + +trait Element[T] { +} + +trait Config { + type T <: Element[T] + // XXX Following works fine: + // type T <: Element[_] +} + +trait Transform { self: Config => + def processBlock(block: Array[T]): Unit = { + var X = new Array[T](1) + } +} |