Inference: handle Exact constraints with captured types properly

#KT-41818 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-04-15 15:55:41 +03:00
parent 51d348d5fa
commit 9b3f1b9b8a
9 changed files with 80 additions and 3 deletions
@@ -0,0 +1,11 @@
// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// Note: this test passes in FIR but fails in FE 1.0 + IR
fun box(): String {
val m1: Map<String, Any> = mapOf("foo" to "O")
val m2: Map<String, *> = mapOf("baz" to "K")
val foo: String by m1
val baz: String by m2
return foo + baz
}