FIR: Refine visibility check for class members
This commit is contained in:
committed by
TeamCityServer
parent
d702365632
commit
fba44759c0
+1
-1
@@ -5,7 +5,7 @@ fun test() {
|
||||
A.Companion.<!INVISIBLE_REFERENCE!>f<!>
|
||||
B.D
|
||||
CCC
|
||||
CCC.classObjectVar
|
||||
CCC.<!INVISIBLE_REFERENCE!>classObjectVar<!>
|
||||
}
|
||||
|
||||
class A() {
|
||||
|
||||
Vendored
+2
-2
@@ -3,7 +3,7 @@ package test
|
||||
fun use() {
|
||||
Default.create()
|
||||
|
||||
Explicit.create()
|
||||
Explicit.<!INVISIBLE_REFERENCE!>create<!>()
|
||||
}
|
||||
|
||||
private class Default {
|
||||
@@ -16,4 +16,4 @@ private class Explicit {
|
||||
private companion object {
|
||||
fun create() = Explicit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -40,12 +40,12 @@ fun test() {
|
||||
f(<!INVISIBLE_REFERENCE!>D<!>)
|
||||
|
||||
A.foo()
|
||||
<!INVISIBLE_REFERENCE!>B<!>.bar()
|
||||
C.baz()
|
||||
<!INVISIBLE_REFERENCE!>D<!>.quux()
|
||||
<!INVISIBLE_REFERENCE!>B<!>.<!INVISIBLE_REFERENCE!>bar<!>()
|
||||
C.<!INVISIBLE_REFERENCE!>baz<!>()
|
||||
<!INVISIBLE_REFERENCE!>D<!>.<!INVISIBLE_REFERENCE!>quux<!>()
|
||||
|
||||
a.A.foo()
|
||||
a.C.baz()
|
||||
a.C.<!INVISIBLE_REFERENCE!>baz<!>()
|
||||
}
|
||||
|
||||
fun f(unused: Any) {}
|
||||
|
||||
+1
-1
@@ -12,4 +12,4 @@ class A {
|
||||
|
||||
fun <!EXPOSED_FUNCTION_RETURN_TYPE!>f1<!>() = A.Companion.B.<!INVISIBLE_REFERENCE!>C<!>
|
||||
|
||||
fun f2() = A.Companion.B.<!INVISIBLE_REFERENCE!>C<!>.foo()
|
||||
fun f2() = A.Companion.B.<!INVISIBLE_REFERENCE!>C<!>.<!INVISIBLE_REFERENCE!>foo<!>()
|
||||
|
||||
Reference in New Issue
Block a user