Quickfix NON_VARARG_SPREAD completed.
This commit is contained in:
committed by
Nikolay Krasko
parent
c6456d04f2
commit
23e8fe338f
@@ -0,0 +1,12 @@
|
||||
// "Remove '*'" "true"
|
||||
fun join(x : Int, vararg a : String) : String {
|
||||
val b = StringBuilder(x.toString())
|
||||
for (s in a) {
|
||||
b.append(s)
|
||||
}
|
||||
return b.toString()
|
||||
}
|
||||
|
||||
fun main(args : Array<String>) {
|
||||
join(*<caret>1, "2")
|
||||
}
|
||||
Reference in New Issue
Block a user