Skip to content

Commit a2e49e2

Browse files
committed
Add test for previous ensuring correct binds
1 parent 6c7b7e3 commit a2e49e2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/run/correct-bind.check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Vector(second, third)

tests/run/correct-bind.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
object Test extends dotty.runtime.LegacyApp {
2+
val Array(who, what: _*) = "first second third" split (" ")
3+
println(what)
4+
}

0 commit comments

Comments
 (0)