[FIR] Rework resolution of declaration statuses
There is introduced algorithm of resolution with jumps: before resolution of some class we resolve all status of members of its supertypes, so we can properly determine inherited visibility and modifiers
This commit is contained in:
Vendored
+1
-1
@@ -5,7 +5,7 @@ open class A {
|
||||
fun bar(x: B) {
|
||||
x.foo() // OK, foo declared in A
|
||||
x.<!HIDDEN!>baz<!>() // Declared in B
|
||||
x.foobaz() // Declared in B
|
||||
x.<!HIDDEN!>foobaz<!>() // Declared in B
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user