Files
kotlin-fork/compiler/testData/diagnostics/tests/declarationChecks/DataFlowInfoInMultiDecl.kt
T
2013-12-11 19:53:50 +04:00

14 lines
348 B
Kotlin

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