blob: 24d12e9f8848694326bd2cb7ce1bbc802a72e71f [file] [log] [blame]
package foo
interface B {
val c: Int
get() = 2
}
class A(val b: B) : B by b {
override val c: Int = 3
}
fun box(): String {
val c = A(object: B {}).c
return if (c == 3) "OK" else "fail: $c"
}