[FIR2IR] Don't insert not-needed upcasts for smartcasted expressions

Related to KT-63257
This commit is contained in:
Dmitriy Novozhilov
2023-11-09 10:51:17 +02:00
committed by Space Team
parent aa1a997f8a
commit c70a6425f5
18 changed files with 55 additions and 62 deletions
@@ -18,7 +18,8 @@ fun test(x: I1) {
when {
x !is I2 -> return Unit
}
val tmp_0: I1 = x /*as Any */
val tmp_0: I1 = x
val c1: Int = tmp_0.component1()
val c2: String = tmp_0 /*as I2 */.component2()
}