Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/assignment/uninitializedValNullability.fir.kt
T
2020-01-22 14:49:22 +03:00

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