Files
kotlin-fork/compiler/testData/diagnostics/tests/declarationChecks/DataFlowInfoInMultiDecl.kt
T

15 lines
281 B
Kotlin
Vendored

class A {
operator fun component1() : Int = 1
operator fun component2() : Int = 2
}
fun a(aa : A?, b : Any) {
if (aa != null) {
val (a1, b1) = <!DEBUG_INFO_SMARTCAST!>aa<!>;
}
if (b is A) {
val (a1, b1) = <!DEBUG_INFO_SMARTCAST!>b<!>;
}
}