mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
15 lines
293 B
Kotlin
15 lines
293 B
Kotlin
fun test(a: Any?, flag: Boolean, x: Any?) {
|
|
if (a !is String) return
|
|
<!DEBUG_INFO_SMARTCAST!>a<!>.length()
|
|
|
|
val b: Any?
|
|
|
|
if (flag) {
|
|
b = a
|
|
<!DEBUG_INFO_SMARTCAST!>b<!>.length()
|
|
}
|
|
else {
|
|
b = x
|
|
b.<!UNRESOLVED_REFERENCE!>length<!>()
|
|
}
|
|
} |