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