mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
15 lines
215 B
Kotlin
Vendored
15 lines
215 B
Kotlin
Vendored
fun test(a: Any?, flag: Boolean, x: Any?) {
|
|
if (a == null) return
|
|
a.hashCode()
|
|
|
|
val b: Any?
|
|
|
|
if (flag) {
|
|
b = a
|
|
b.hashCode()
|
|
}
|
|
else {
|
|
b = x
|
|
b.hashCode()
|
|
}
|
|
} |