summaryrefslogblamecommitdiff
path: root/test/files/pos/t2795.scala
blob: a4e1b7db83372700cca52ba3e9dc7ecad45693c2 (plain) (tree)
1
2
3
4
5
6
7
8






                      
                                  








                                             
package bug1

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)
  }
}