summaryrefslogtreecommitdiff
path: root/test/files/run/t0677.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-08-27 14:45:35 +0000
committerMartin Odersky <odersky@gmail.com>2009-08-27 14:45:35 +0000
commita04195e63727872f04ad01900a18f6ca9ec5cf2b (patch)
tree48964da67438a04e802a5c2324f0a02f2d22efb7 /test/files/run/t0677.scala
parent2c39b8b0839a5dfd48dfd073944f7b176cc63f4b (diff)
downloadscala-a04195e63727872f04ad01900a18f6ca9ec5cf2b.tar.gz
scala-a04195e63727872f04ad01900a18f6ca9ec5cf2b.tar.bz2
scala-a04195e63727872f04ad01900a18f6ca9ec5cf2b.zip
added manifests to most parts of standard libra...
added manifests to most parts of standard library which deal with arrays. One test is temporarily disabled, as it shows a deep problem with multi-dimensional arrays (which was present all along).
Diffstat (limited to 'test/files/run/t0677.scala')
-rw-r--r--test/files/run/t0677.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/run/t0677.scala b/test/files/run/t0677.scala
index 7978e3d142..eb01a85fcb 100644
--- a/test/files/run/t0677.scala
+++ b/test/files/run/t0677.scala
@@ -1,5 +1,8 @@
object Test extends Application {
- class X[T] { val a = new Array[Array[T]](3,4) }
+ class X[T: ClassManifest] {
+ val a = new Array[Array[T]](3,4)
+ val b = Array.ofDim[T](3, 4)
+ }
val x = new X[String]
x.a(1)(2) = "hello"
assert(x.a(1)(2) == "hello")