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