[FIR2IR] Properly approximate intersection types during fir2ir conversion

^KT-62544 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-10-16 13:19:40 +03:00
committed by Space Team
parent 8c6da9fddb
commit 9366847e96
52 changed files with 450 additions and 803 deletions
@@ -18,7 +18,7 @@ fun test(x: I1) {
when {
x !is I2 -> return Unit
}
val tmp_0: I1 = x /*as I2 */
val c1: Int = tmp_0 /*as I2 */.component1()
val c2: String = tmp_0 /*as I2 */.component2()
val tmp_0: I1 = x /*as Any */
val c1: Int = tmp_0 /*as Any */.component1()
val c2: String = tmp_0 /*as Any */.component2()
}