From be11c92b6e84891f36fd4b271303b49c4aac23c8 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Thu, 19 Apr 2012 15:11:58 +0200 Subject: fixes SI-5680 --- test/files/run/t5680.check | 3 +++ test/files/run/t5680.scala | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 test/files/run/t5680.check create mode 100644 test/files/run/t5680.scala (limited to 'test/files/run') 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 -- cgit v1.2.3