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

                                         




                      
                             







                                             
 
package t1

import scala.reflect.{ArrayTag, arrayTag}

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