[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
@@ -6,14 +6,14 @@ package p
private fun foo(a: Int) = run {
object {
inner class A
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>foo<!>() = A()
fun foo() = A()
}.foo()
}
private fun foo() = run {
object {
inner class A
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>foo<!>() = A()
fun foo() = A()
}.foo()
}