Files
kotlin-fork/idea/testData/intentions/loopToCallChain/addToCollection.kt
T
2016-08-16 17:38:02 +03:00

7 lines
172 B
Kotlin
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with '+='"
fun foo(list: List<String>, target: MutableList<String>) {
<caret>for (s in list) {
target.add(s)
}
}