package foo

enum class A(val a: Int = 1) {
    FIRST(),
    SECOND(2)
}

class B(val a: Int = 1)

fun box(): String {
    if (A.FIRST.a == 1 && A.SECOND.a == 2) {
        return "OK"
    }

    B()

    return "fail"
}
