mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
Before this commit, such descriptors have null owners, which causes problems when the getter of the owner property is called.
19 lines
223 B
Kotlin
Vendored
19 lines
223 B
Kotlin
Vendored
// FILE: 1.kt
|
|
class Test: Impl(), CProvider
|
|
|
|
fun box() = "OK"
|
|
|
|
// FILE: 2.kt
|
|
open class C
|
|
class D: C()
|
|
|
|
interface CProvider {
|
|
fun getC(): C
|
|
}
|
|
|
|
interface DProvider {
|
|
fun getC(): D = D()
|
|
}
|
|
|
|
open class Impl: DProvider
|