KT-19565: J2K: Determine mutability using iterator
#KT-19565 fixed
This commit is contained in:
committed by
Simon Ogorodnik
parent
d312996f3a
commit
0722c5c13a
@@ -0,0 +1,13 @@
|
||||
import java.util.ArrayList
|
||||
|
||||
class TestMutableCollection {
|
||||
val list: MutableList<String> = ArrayList()
|
||||
|
||||
fun test() {
|
||||
val it = list.iterator()
|
||||
while (it.hasNext()) {
|
||||
val s = it.next()
|
||||
if (s == "") it.remove()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user