4c04ad2371
Before this commit, such descriptors have null owners, which causes problems when the getter of the owner property is called.
11 lines
135 B
Kotlin
Vendored
11 lines
135 B
Kotlin
Vendored
//KT-2206
|
|
interface A {
|
|
fun f():Int = 239
|
|
}
|
|
|
|
class B() : A
|
|
|
|
fun box() : String {
|
|
return if (B().f() == 239) "OK" else "fail"
|
|
}
|