blob: 4a0f6229877932b00f414d7f3d6d22e38b108b4b [file]
// RUN_PIPELINE_TILL: FRONTEND
// FIR_IDENTICAL
// DIAGNOSTICS: -UNUSED_PARAMETER, -NOTHING_TO_INLINE
// ISSUES: KT-70133
fun (()->Int).foo(y: String) {
this()
}
inline fun (()->Int).bar(y: String) {
this()
}
fun test1() {
val x: String
{ <!UNINITIALIZED_VARIABLE!>x<!>.length }.foo(
if (true) { x = ""; "" } else { x = ""; "" }
)
}
fun test2() {
val x: String
{ <!UNINITIALIZED_VARIABLE!>x<!>.length }.bar(
if (true) { x = ""; "" } else { x = ""; "" }
)
}
/* GENERATED_FIR_TAGS: assignment, funWithExtensionReceiver, functionDeclaration, functionalType, ifExpression, inline,
lambdaLiteral, localProperty, propertyDeclaration, stringLiteral, thisExpression */