mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
22 lines
287 B
Kotlin
Vendored
22 lines
287 B
Kotlin
Vendored
// FILE: J.java
|
|
|
|
public class J {
|
|
protected static String protectedFun() {
|
|
return "OK";
|
|
}
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
open class A : J() {}
|
|
|
|
class Derived : A() {
|
|
fun test(): String {
|
|
return J.protectedFun()!!
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Derived().test()
|
|
}
|