15 lines
285 B
Kotlin
Vendored
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()
|