89bacb9c2 ^
73a93505c ^
1 2 3 4 5 6 7 8 9
10
import scala.reflect.{ClassTag, classTag} object Test extends App { class X[T: ClassTag] { val a = Array.ofDim[T](3, 4) } val x = new X[String] x.a(1)(2) = "hello" assert(x.a(1)(2) == "hello") }