Files
kotlin/compiler/testData/codegen/boxAgainstJava/visibility/protectedStatic/simpleClass2.kt
2016-03-02 15:47:36 +03:00

27 lines
399 B
Kotlin
Vendored

// FILE: Base.java
public class Base {
public static class A {
protected static class B {
public B() {
}
public String foo() {
return "OK";
}
}
}
}
// FILE: 1.kt
class Derived : Base.A() {
fun test(): String {
return Base.A.B().foo()!!
}
}
fun box(): String {
return Derived().test()
}