Checking that target collection is always the same
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
import java.util.ArrayList
|
||||
|
||||
var globalCollection = ArrayList<Int>()
|
||||
|
||||
fun foo(list: List<Collection<Int>>) {
|
||||
<caret>for (collection in list) {
|
||||
globalCollection.add(collection.size)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user