Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/kt2865.fir.kt
T

12 lines
251 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
operator fun <K, V> MutableMap<K, V>.set(k: K, v: V) {}
fun foo(a: MutableMap<String, String>, x: String?) {
a[x!!] = x
a[x] = x!!
}
fun foo1(a: MutableMap<String, String>, x: String?) {
a[x] = x!!
a[x!!] = x
}