Files
kotlin/compiler/testData/codegen/box/traits/inheritJavaInterface.kt
Juan Chen 4c04ad2371 FIR: Add bindings for dispatch receiver parameters
Before this commit, such descriptors have null owners, which causes problems when the getter of the owner property is called.
2019-12-27 10:13:44 +03: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()!!
}