blob: ab75d427a8611a4b837b81c291c17f9ea2ded822 [file]
// FIR_IDENTICAL
// RUN_PIPELINE_TILL: FRONTEND
// ISSUES: KT-74326
fun test1() {
val firstLambda: (Int) -> Int
val secondLambda: (Int) -> Int
firstLambda = { x -> <!UNINITIALIZED_VARIABLE!>secondLambda<!>(x) }
secondLambda = { y -> firstLambda(y) }
}
fun test2() {
val firstLambda: (Int) -> Int
val secondLambda: (Int) -> Int
firstLambda = { x -> <!UNINITIALIZED_VARIABLE!>secondLambda<!>.invoke(x) }
secondLambda = { y -> firstLambda.invoke(y) }
}
/* GENERATED_FIR_TAGS: assignment, functionDeclaration, functionalType, lambdaLiteral, localProperty,
propertyDeclaration */