Files
kotlin-fork/idea/testData/intentions/loopToCallChain/toCollection/KT18881.kt
T
2017-12-18 18:10:33 +01:00

15 lines
290 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
// IS_APPLICABLE_2: false
data class Node(private val data: MutableList<String>) {
fun add(word: String) {
data.add(word)
}
}
fun foo(node: Node, words: List<String>) {
<caret>for (word in words) {
node.add(word)
}
}