Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/initializationInLocalFun.kt
T
2020-06-19 15:53:09 +03:00

10 lines
139 B
Kotlin
Vendored

// FIR_IDENTICAL
fun foo() {
var x: Int
fun bar() {
x = 42
}
<!UNINITIALIZED_VARIABLE!>x<!>.hashCode()
bar()
}