Files
kotlin-fork/compiler/testData/codegen/box/delegation/inDataClass.kt
T
2023-12-26 10:18:19 +00:00

16 lines
264 B
Kotlin
Vendored

// JVM_ABI_K1_K2_DIFF: KT-63828
interface A {
fun foo(): String
val bar: String
}
class B : A {
override fun foo(): String = "O"
override val bar: String get() = "K"
}
data class C(val a: A): A by a
fun box() = C(B()).let { it.foo() + it.bar }