[FIR] Calculate effective visibility inside anonymous object properly

#KT-38432 Fixed
This commit is contained in:
Mikhail Glukhikh
2020-04-21 11:16:43 +03:00
parent bb73681b62
commit 57b4a54766
23 changed files with 71 additions and 72 deletions
@@ -51,7 +51,7 @@ FILE: localClassesWithImplicit.kt
super<R|kotlin/Any|>()
}
public final fun foo(): R|kotlin/Int| {
public[local] final fun foo(): R|kotlin/Int| {
^foo R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
^ when () {
@@ -68,7 +68,7 @@ FILE: localClassesWithImplicit.kt
)
}
public final fun bar(): R|kotlin/Int| {
public[local] final fun bar(): R|kotlin/Int| {
^bar R|/myRun|<R|kotlin/Int|>(<L> = myRun@fun <anonymous>(): R|kotlin/Int| <kind=UNKNOWN> {
R|<local>/a|.R|kotlin/String.length|
R|<local>/b|.<Unresolved name: length>#
@@ -77,7 +77,7 @@ FILE: localClassesWithImplicit.kt
)
}
public final fun baz(): R|kotlin/Int| {
public[local] final fun baz(): R|kotlin/Int| {
^baz Int(1)
}