Files
kotlin-fork/compiler/testData/ir/irText/expressions/multipleSmartCasts.kt
T
2021-01-11 12:01:48 +03:00

14 lines
195 B
Kotlin
Vendored

interface IC1 {
operator fun component1(): Int
}
interface IC2 {
operator fun component2(): String
}
fun test(x: Any) {
if (x is IC1 && x is IC2) {
val (x1, x2) = x
}
}