Files
kotlin-fork/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.fir.kt.txt
T
Vladimir Sukharev bae8b283c7 [IR] Normalize temp var names in Kotlin-like dump
^KT-61983 Fixed
2023-10-11 07:49:35 +00:00

25 lines
329 B
Kotlin
Vendored

interface I1 {
}
interface I2 {
}
operator fun I1.component1(): Int {
return 1
}
operator fun I2.component2(): String {
return ""
}
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()
}