mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
23 lines
335 B
Kotlin
Vendored
23 lines
335 B
Kotlin
Vendored
// FILE: Base.java
|
|
|
|
public class Base {
|
|
protected static class Inner {
|
|
public Inner() {}
|
|
public String foo() {
|
|
return "OK";
|
|
}
|
|
}
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
class Derived : Base() {
|
|
fun test(): String {
|
|
return Base.Inner().foo()!!
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Derived().test()
|
|
}
|