blob: eb01a85fcb41c01610e9b2ef99bae25a35a484c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Test extends Application {
class X[T: ClassManifest] {
val a = new Array[Array[T]](3,4)
val b = Array.ofDim[T](3, 4)
}
val x = new X[String]
x.a(1)(2) = "hello"
assert(x.a(1)(2) == "hello")
}
|