From 96b80791737efd952383aba56ba69440e861647d Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 21 May 2008 17:32:29 +0000 Subject: added tests; fixed #903; made Predef.Map covari... added tests; fixed #903; made Predef.Map covariant in second parameter. --- test/files/run/t0677.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/run/t0677.scala (limited to 'test/files/run') 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") +} -- cgit v1.2.3