fix some tests for as36

This commit is contained in:
Dmitry Gridin
2020-05-08 19:07:55 +07:00
parent ad09eb5416
commit 50506658c0
22 changed files with 319 additions and 0 deletions
@@ -0,0 +1,23 @@
import java.util.*
internal class Iterator {
var mutableMap1: MutableMap<String, String> = HashMap()
var mutableMap2: MutableMap<String, String> = HashMap()
fun testFields() {
mutableMap1.values.add("")
mutableMap2.entries.iterator().remove()
}
fun testFunctionParameters(
immutableCollection: Collection<String>,
mutableList: MutableList<Int>
) {
val it = immutableCollection.iterator()
while (it.hasNext()) {
it.next()
}
mutableList.listIterator().add(2)
}
}