FIR: Refine visibility check for class members

This commit is contained in:
Denis.Zharkov
2021-10-18 12:21:57 +03:00
committed by TeamCityServer
parent d702365632
commit fba44759c0
23 changed files with 246 additions and 26 deletions
@@ -31,7 +31,7 @@ private object TopLevelObject {
fun testAccess() {
<!INVISIBLE_REFERENCE!>NestedClass<!>()
E1
InNested()
NestedEntry
<!INVISIBLE_REFERENCE!>InNested<!>()
<!INVISIBLE_REFERENCE!>NestedEntry<!>
inObject()
}
@@ -22,5 +22,5 @@ import B.JC.JC1
fun test() {
<!INVISIBLE_REFERENCE!>O1<!>
JC1()
<!INVISIBLE_REFERENCE!>JC1<!>()
}
@@ -26,7 +26,7 @@ private enum class TopLevelEnum(private val e: NestedEnum) {
fun testAccess() {
E1
NestedEntry
A1()
<!INVISIBLE_REFERENCE!>NestedEntry<!>
<!INVISIBLE_REFERENCE!>A1<!>()
<!INVISIBLE_REFERENCE!>A2<!>
}