summaryrefslogtreecommitdiff
path: root/test/files/run/t6611.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6611.scala')
-rw-r--r--test/files/run/t6611.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/t6611.scala b/test/files/run/t6611.scala
new file mode 100644
index 0000000000..c0297372f0
--- /dev/null
+++ b/test/files/run/t6611.scala
@@ -0,0 +1,6 @@
+object Test extends App {
+ val a = Array("1")
+ val a2 = Array(a: _*)
+ a2(0) = "2"
+ assert(a(0) == "1")
+}