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

12 lines
265 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
// IS_APPLICABLE_2: false
import java.util.ArrayList
var globalCollection = ArrayList<Int>()
fun foo(list: List<Collection<Int>>) {
<caret>for (collection in list) {
globalCollection.add(collection.size)
}
}