Files
kotlin-fork/idea/testData/intentions/loopToCallChain/toCollection/addToCollection.kt
T
2016-08-23 22:47:42 +03:00

9 lines
199 B
Kotlin
Vendored

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