Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/assignment/uninitializedValNullability.fir.kt

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()
}
}