[FIR] Use type without smartcast for local variable with smartcasted initializer
This commit is contained in:
+3
-3
@@ -18,7 +18,7 @@ fun test(x: I1) {
|
||||
when {
|
||||
x !is I2 -> return Unit
|
||||
}
|
||||
val <destruct>: I2 = x /*as I2 */
|
||||
val c1: Int = <destruct>.component1()
|
||||
val c2: String = <destruct>.component2()
|
||||
val <destruct>: I1 = x /*as I2 */
|
||||
val c1: Int = <destruct> /*as I2 */.component1()
|
||||
val c2: String = <destruct> /*as I2 */.component2()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user