aboutsummaryrefslogtreecommitdiff
path: root/tests/run/correct-bind.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/correct-bind.scala')
-rw-r--r--tests/run/correct-bind.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run/correct-bind.scala b/tests/run/correct-bind.scala
new file mode 100644
index 000000000..9f45012bf
--- /dev/null
+++ b/tests/run/correct-bind.scala
@@ -0,0 +1,4 @@
+object Test extends dotty.runtime.LegacyApp {
+ val Array(who, what: _*) = "first second third" split (" ")
+ println(what)
+}