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

16 lines
234 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"
}