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