blob: 7160e688e9918456e0dc3cadb3e53c880b800e03 [file]
// RUN_PIPELINE_TILL: CODEGEN
fun baz(s: String?, u: String?): String {
val t = when(if (u == null) return "" else u) {
"abc" -> u
"" -> {
if (s == null) return ""
s
}
else -> u
}
return t
}
/* GENERATED_FIR_TAGS: equalityExpression, functionDeclaration, ifExpression, localProperty, nullableType,
propertyDeclaration, smartcast, stringLiteral, whenExpression, whenWithSubject */