[FIR] Add EXPOSED_SUPER_(CLASS/INTERFACE) checker

This commit is contained in:
rapturemain
2020-04-23 18:53:59 +03:00
committed by Mikhail Glukhikh
parent ef09850df8
commit 49593d308c
27 changed files with 241 additions and 40 deletions
@@ -5,13 +5,13 @@ open class A {
}
public open class C {
// protected relative to C, must be an error
protected open class D : B()
protected open class D : <!EXPOSED_SUPER_CLASS!>B<!>()
}
}
class E : A.C() {
// F has invisible grandparent class B (E does not inherit from A)
class F : A.C.D() {
class F : <!EXPOSED_SUPER_CLASS!>A.C.D<!>() {
init {
// Invoke function from invisible grandparent
foo()