summaryrefslogblamecommitdiff
path: root/test/files/run/t0677-new.scala
blob: bf7a3971dc918368b74d0b527f346688212465eb (plain) (tree)
1
2
3
4
5
6
7
8
                         
                        
                                
   



                              
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")
}