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
@@ -33,7 +33,7 @@ fun testSmartcast(x: Any) {
fun testInference(a: A, b: B) {
val x = <!DEBUG_INFO_EXPRESSION_TYPE("foo.PackagePrivateInterface")!>select(a, b)<!>
x.foo()
x.<!INVISIBLE_REFERENCE!>foo<!>()
}
// FILE: samePackage.kt
@@ -39,5 +39,5 @@ fun testSmartcast(x: Any) {
fun testInference(a: A, b: B) {
val x = <!DEBUG_INFO_EXPRESSION_TYPE("foo.PrivateInterface")!>select(a, b)<!>
x.foo()
x.<!INVISIBLE_REFERENCE!>foo<!>()
}