Files
kotlin-fork/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.kt
T
Dmitry Petrov 0b647ac358 Basic class members generation.
Split testData into 'classes' and 'expressions'.
2016-10-18 09:08:32 +03:00

10 lines
160 B
Kotlin
Vendored

interface I1
interface I2
operator fun I1.component1() = 1
operator fun I2.component2() = ""
fun test(x: I1) {
if (x !is I2) return
val (c1, c2) = x
}