diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-04-19 15:11:58 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-04-20 12:44:52 +0200 |
commit | be11c92b6e84891f36fd4b271303b49c4aac23c8 (patch) | |
tree | bd43cff59594e5d1db339e66db7cd651ce0e97b8 /test | |
parent | 016bc3db52d6f1ffa3ef2285d5801f82f5f49167 (diff) | |
download | scala-be11c92b6e84891f36fd4b271303b49c4aac23c8.tar.gz scala-be11c92b6e84891f36fd4b271303b49c4aac23c8.tar.bz2 scala-be11c92b6e84891f36fd4b271303b49c4aac23c8.zip |
fixes SI-5680
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t5680.check | 3 | ||||
-rw-r--r-- | test/files/run/t5680.scala | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t5680.check b/test/files/run/t5680.check new file mode 100644 index 0000000000..9fec3b6505 --- /dev/null +++ b/test/files/run/t5680.check @@ -0,0 +1,3 @@ +[Lscala.runtime.BoxedUnit
+()
+()
diff --git a/test/files/run/t5680.scala b/test/files/run/t5680.scala new file mode 100644 index 0000000000..f61cbd6e20 --- /dev/null +++ b/test/files/run/t5680.scala @@ -0,0 +1,7 @@ +object Test extends App { + val x = Array[Unit]((), ()) + println(x.toString.substring(0, x.toString.indexOf(";"))) + println(x(0)) + x(1) = () + println(x(1)) +}
\ No newline at end of file |