// RUN_PIPELINE_TILL: BACKEND
// IGNORE_LIGHT_TREE

// FILE: Utils.java

public class Utils {
    public static E getEnum() {
        return null;
    }
}

// FILE: main.kt

enum class E {
    A, B, C
}

fun test_1() {
    val e = Utils.getEnum()
    val s = when (e) {
        null -> return
        E.A -> ""
        E.B -> ""
        E.C -> ""
    }
    s.length
}

fun test_2() {
    val e = Utils.getEnum()
    val s = when (e) {
        E.A -> ""
        E.B -> ""
        E.C -> ""
    }
    s.length
}

/* GENERATED_FIR_TAGS: enumDeclaration, enumEntry, equalityExpression, flexibleType, functionDeclaration, javaFunction,
localProperty, propertyDeclaration, smartcast, stringLiteral, whenExpression, whenWithSubject */
