diff options
Diffstat (limited to 'test/files/run/t0677-new.scala')
-rw-r--r-- | test/files/run/t0677-new.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t0677-new.scala b/test/files/run/t0677-new.scala new file mode 100644 index 0000000000..bf7a3971dc --- /dev/null +++ b/test/files/run/t0677-new.scala @@ -0,0 +1,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") +} |