blob: c46c016c257e4acfcdecb54b8a017515fd5eecc9 [file]
// RUN_PIPELINE_TILL: BACKEND
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()
}
}
}
}
/* GENERATED_FIR_TAGS: anonymousObjectExpression, checkNotNullCall, funWithExtensionReceiver, functionDeclaration,
functionalType, interfaceDeclaration, lambdaLiteral, localFunction, nullableType, override, thisExpression,
typeParameter, typeWithExtension */