Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/assignment/uninitializedValNullability.fir.kt
T
2021-01-29 16:55:26 +03:00

15 lines
233 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<!UNSAFE_CALL!>.<!>hashCode()
}
}