mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
21 lines
239 B
Kotlin
Vendored
21 lines
239 B
Kotlin
Vendored
// FILE: MyInt.java
|
|
|
|
public interface MyInt {
|
|
|
|
String test();
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
interface A : MyInt {
|
|
override public fun test(): String? {
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
class B: A
|
|
|
|
fun box() : String {
|
|
return B().test()!!
|
|
}
|