[FIR] Handle protected effective visibility relation properly

#KT-38401 Fixed
This commit is contained in:
rapturemain
2020-04-27 18:17:47 +03:00
committed by Mikhail Glukhikh
parent 07e9b9517a
commit 54cfd1f625
6 changed files with 29 additions and 26 deletions
@@ -10,7 +10,7 @@ public abstract class Outer {
class OuterDerived: Outer() {
// valid, My has better visibility
protected class His: <!EXPOSED_SUPER_CLASS!>Outer.My<!>()
protected class His: Outer.My()
// valid, My and Your have better visibility
override fun <!EXPOSED_FUNCTION_RETURN_TYPE!>foo<!>(<!EXPOSED_PARAMETER_TYPE!>my: Outer.My<!>) = Outer.Your()
}