aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t5680.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t5680.scala')
-rw-r--r--tests/run/t5680.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/t5680.scala b/tests/run/t5680.scala
new file mode 100644
index 000000000..7f4252839
--- /dev/null
+++ b/tests/run/t5680.scala
@@ -0,0 +1,7 @@
+object Test extends dotty.runtime.LegacyApp {
+ val x = Array[Unit]((), ())
+ println(x.toString.substring(0, x.toString.indexOf(";")))
+ println(x(0))
+ x(1) = ()
+ println(x(1))
+}