blob: 3425dac43d52c22efdd6231a7b1d8c1da20b274b [file]
// RUN_PIPELINE_TILL: FRONTEND
// FIR_IDENTICAL
// CHECK_TYPE
class Foo
fun Foo?.bar() {}
fun test() {
val r1 = Foo ?:: bar
checkSubtype<(Foo?) -> Unit>(r1)
val r2 = Foo ? :: bar
checkSubtype<(Foo?) -> Unit>(r2)
val r3 = Foo ? ? :: bar
checkSubtype<(Foo?) -> Unit>(r3)
}
/* GENERATED_FIR_TAGS: callableReference, classDeclaration, funWithExtensionReceiver, functionDeclaration,
functionalType, infix, localProperty, nullableType, propertyDeclaration, typeParameter, typeWithExtension */