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

16 lines
236 B
Kotlin
Vendored

// JVM_ABI_K1_K2_DIFF: KT-63828
interface Tr<T> {
val prop: T
}
class A(a: Tr<Int>) : Tr<Int> by a
fun eat(x: Int) {}
fun box(): String {
eat(A(object : Tr<Int> {
override val prop = 42
}).prop)
return "OK"
}