Files
kotlin/compiler/testData/codegen/box/traits/inheritJavaInterface.kt
2018-12-21 16:09:06 +01:00

23 lines
263 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// 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()!!
}