Files
kotlin-fork/compiler/testData/codegen/box/enum/enumEntryHashCode.kt
T
2023-06-16 22:18:20 +00:00

8 lines
193 B
Kotlin
Vendored

// WITH_STDLIB
enum class E {
A, B
}
// hashCode shouldn't always return ordinal: KT-59223
fun box() = if (E.A.hashCode() == E.A.ordinal && E.B.hashCode() == E.B.ordinal) "FAIL" else "OK"