Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/constructor/enum.kt
T
Nikolay Lunyak bcfafc601e Add EnumEntries to minimal-stdlib-for-tests
This change allows to revert adding `WITH_STDLIB` directive
to tests which happened at `a9343aeb`.

Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
2023-03-02 10:23:38 +00:00

12 lines
163 B
Kotlin
Vendored

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