mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Before this commit, such descriptors have null owners, which causes problems when the getter of the owner property is called.
23 lines
263 B
Kotlin
Vendored
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()!!
|
|
}
|