[FIR] CFG: drop redundant edges
Edges from class to its functions and nested classes are redundant and lead to extra resolution work in lazy resolve mode ^KT-59600 Fixed
This commit is contained in:
committed by
Space Team
parent
df28bd1d79
commit
09ca335b7e
+7
@@ -12,6 +12,7 @@ fun test1() {
|
||||
fun test2() {
|
||||
val x: Int
|
||||
val y: Int
|
||||
val z: Int
|
||||
|
||||
object {
|
||||
init {
|
||||
@@ -21,6 +22,12 @@ fun test2() {
|
||||
fun localFunc() {
|
||||
<!CAPTURED_VAL_INITIALIZATION!>y<!> = 0
|
||||
}
|
||||
|
||||
val prop: Int
|
||||
get() {
|
||||
<!CAPTURED_VAL_INITIALIZATION!>z<!> = 0
|
||||
return 2
|
||||
}
|
||||
}
|
||||
|
||||
println(x)
|
||||
|
||||
Reference in New Issue
Block a user