mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
14 lines
350 B
Kotlin
14 lines
350 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_SMARTCAST!>aa<!>;
|
|
}
|
|
|
|
if (b is A) {
|
|
val (<!UNUSED_VARIABLE!>a1<!>, <!UNUSED_VARIABLE!>b1<!>) = <!DEBUG_INFO_SMARTCAST!>b<!>;
|
|
}
|
|
} |