blob: af9c4e8b1c0b66e7b9974aa5d30b24a86932369c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)
}
}
|