FIR CFG traverser: do not skip graph enter node
#KT-42348 fixed
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
a154cf4c45
commit
2d001a46fc
-16
@@ -1,16 +0,0 @@
|
||||
fun foo(arg: Boolean) {
|
||||
val x : Int
|
||||
if (arg) {
|
||||
x = 4
|
||||
} else {
|
||||
x = 2
|
||||
}
|
||||
|
||||
x.hashCode()
|
||||
|
||||
class Local {
|
||||
fun bar() {
|
||||
<!UNINITIALIZED_VARIABLE!>x<!>.hashCode()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun foo(arg: Boolean) {
|
||||
val x : Int
|
||||
if (arg) {
|
||||
|
||||
Reference in New Issue
Block a user