[FIR] Fix redundant calls to firEffectiveVisibility()

This commit is contained in:
Nick
2020-07-10 15:19:02 +03:00
parent 5340cf5567
commit 67e58ff152
11 changed files with 73 additions and 55 deletions
@@ -1,16 +0,0 @@
// FILE: Outer.java
public abstract class Outer {
protected static class My {}
protected static class Your extends My {}
abstract protected Your foo(My my);
}
// FILE: OuterDerived.kt
class OuterDerived: Outer() {
// valid, My has better visibility
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()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// FILE: Outer.java
public abstract class Outer {