14 lines
204 B
Kotlin
Vendored
14 lines
204 B
Kotlin
Vendored
class Foo(vararg val strings: String)
|
|
|
|
fun test_1(foo: Foo) {
|
|
for (s in foo.strings) {
|
|
s.length
|
|
}
|
|
}
|
|
|
|
fun test_2(vararg strings: String) {
|
|
for (s in strings) {
|
|
s.length
|
|
}
|
|
}
|