blob: 85332401b7d72298a9f602b5a13dff2632c3cfa2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import scala.reflect.{ArrayTag, arrayTag}
object Test extends App {
class X[T: ArrayTag] {
val a = Array.ofDim[T](3, 4)
}
val x = new X[String]
x.a(1)(2) = "hello"
assert(x.a(1)(2) == "hello")
}
|