blob: 83262680064acbce32224f337890e6ed56f8fff5 [file]
interface A {
fun foo()
}
interface B {
fun bar()
}
fun B.b() {
object : A {
override fun foo() {
this@b.bar()
}
}
}
fun test() {
fun <T> without(f: T.() -> Unit): Unit = (null!!).f<!UNREACHABLE_CODE!>()<!>
without<B>() b@ {
object : A {
override fun foo() {
this@b.bar()
}
}
}
}