blob: 103c511aa98fcee1744f7d6295cba571761149a0 [file]
// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL
// ISSUE: KT-64089
fun <T> contentReturner(f: () -> T): T {
return null <!UNCHECKED_CAST!>as T<!>
}
fun main(number: Int? = null) {
contentReturner {
"".apply {
number!!
}
}
number != null
}
/* GENERATED_FIR_TAGS: asExpression, checkNotNullCall, equalityExpression, functionDeclaration, functionalType,
lambdaLiteral, nullableType, stringLiteral, typeParameter */