[NI] Clear partially resolved calls after resolve of top-level call

#KT-32433 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2019-09-03 17:55:30 +03:00
parent f305475e3f
commit f8449bf15a
12 changed files with 80 additions and 10 deletions
@@ -0,0 +1,23 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
import kotlin.collections.HashMap
class Inv1<T>
class Inv2<K, V>
class Something {
val guilds = Inv2<Int, Inv1<String>>()
fun test() {
guilds[0] = Inv1()
}
}
operator fun <K, V> Inv2<K, V>.set(key: K, value: V) { }
fun box(): String {
Something().test()
return "OK"
}