interface I { val prop: Int } open class A { fun f1() { this as I prop } fun f2() { prop } } open class B { fun f() { { this as I prop } prop } }