blob: 03d201732fa52fa89a10ffd241350adffc719033 [file]
// RUN_PIPELINE_TILL: CODEGEN
class A {
operator fun invoke() {}
}
class B {
val bar: () -> Unit = {}
val foo: A = A()
}
fun main(b: B?) {
b?.bar() // allowed in FIR, prohibited in old FE
b?.foo() // allowed in FIR, prohibited in old FE
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, functionalType, lambdaLiteral, nullableType, operator,
propertyDeclaration, safeCall */