blob: 840a7f3f1f01ba3dfe7a179b4468899915a0cab7 [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-82211
enum class E {
A, B, C
}
class C {
var e2: E? = null
fun test(): Int {
return if (e2 != null) {
when (e2) {
E.A -> 1
E.B -> 10
E.C -> 100
null -> 0
}
} else {
0
}
}
}
/* GENERATED_FIR_TAGS: classDeclaration, enumDeclaration, enumEntry, equalityExpression, functionDeclaration,
ifExpression, integerLiteral, nullableType, propertyDeclaration, smartcast, whenExpression, whenWithSubject */