blob: 342a4dad07f46e92e45f8cd1fa66bdc627710009 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object Test {
def main(args: Array[String]): Unit = {
val a = Array.ofDim[Int](2,2)
test(a)
}
def test[A](t: Array[Array[A]]): Unit = {
val tmp = t(0)
t(1) = tmp
}
}
|