[FIR] Apply bad test data (protected eff. visibility related, KT-38401)

This commit is contained in:
Mikhail Glukhikh
2020-04-16 19:14:22 +03:00
parent 6d63de01ac
commit 4c639a840d
4 changed files with 29 additions and 2 deletions
@@ -0,0 +1,16 @@
// 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
<!EXPOSED_FUNCTION_RETURN_TYPE!>override fun foo(<!EXPOSED_PARAMETER_TYPE!>my: Outer.My<!>) = Outer.Your()<!>
}