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