summaryrefslogtreecommitdiff
path: root/test/files/run/t0677.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2008-05-21 17:32:29 +0000
committerMartin Odersky <odersky@gmail.com>2008-05-21 17:32:29 +0000
commit96b80791737efd952383aba56ba69440e861647d (patch)
tree6df772e7a2d73ef0f934a18733486e06447d96c9 /test/files/run/t0677.scala
parentb7efa99768e14c03df810b129f979ba61aba8e87 (diff)
downloadscala-96b80791737efd952383aba56ba69440e861647d.tar.gz
scala-96b80791737efd952383aba56ba69440e861647d.tar.bz2
scala-96b80791737efd952383aba56ba69440e861647d.zip
added tests; fixed #903; made Predef.Map covari...
added tests; fixed #903; made Predef.Map covariant in second parameter.
Diffstat (limited to 'test/files/run/t0677.scala')
-rw-r--r--test/files/run/t0677.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/t0677.scala b/test/files/run/t0677.scala
new file mode 100644
index 0000000000..7978e3d142
--- /dev/null
+++ b/test/files/run/t0677.scala
@@ -0,0 +1,6 @@
+object Test extends Application {
+ class X[T] { val a = new Array[Array[T]](3,4) }
+ val x = new X[String]
+ x.a(1)(2) = "hello"
+ assert(x.a(1)(2) == "hello")
+}