Files
kotlin-fork/compiler/testData/diagnostics/tests/controlFlowAnalysis/assignedInIfElse.kt
T
Jinseong Jeon 1c1e8f7beb FIR CFG: revise edge kind between local func node and fun enter node
so that local function enter node can be visited by FIR CFA

#KT-42814 Fixed
2020-10-21 14:01:31 +03:00

22 lines
277 B
Kotlin
Vendored

// FIR_IDENTICAL
fun foo(arg: Boolean) {
val x : Int
if (arg) {
x = 4
} else {
x = 2
}
x.hashCode()
class Local {
fun bar() {
x.hashCode()
}
}
fun local(): Int {
return x.hashCode()
}
}