Files
kotlin-fork/compiler/testData/codegen/box/properties/kt2786.kt
T
2019-11-19 11:00:09 +03:00

15 lines
285 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface FooTrait {
val propertyTest: String
}
class FooDelegate: FooTrait {
override val propertyTest: String = "OK"
}
class DelegateTest(): FooTrait by FooDelegate() {
fun test() = propertyTest
}
fun box() = DelegateTest().test()