blob: b53a2f92a62655c1be316e39f16862cc3ba36b40 [file]
// RUN_PIPELINE_TILL: CODEGEN
val test1 = { when (true) { true -> 1; else -> "" } }
val test2 = { { when (true) { true -> 1; else -> "" } } }
val test3: (Boolean) -> Any = { when (true) { true -> 1; else -> "" } }
val test4: (Boolean) -> Any? = { when (true) { true -> 1; else -> "" } }
fun println() {}
val test5 = {
when (true) {
true -> println()
else -> println()
}
}
/* GENERATED_FIR_TAGS: equalityExpression, functionDeclaration, functionalType, integerLiteral, intersectionType,
lambdaLiteral, nullableType, propertyDeclaration, stringLiteral, whenExpression, whenWithSubject */