Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
enumEntryHashCode.kt
blob: 172e994aabbdbf73d7d20706cc689e496888ce3f [
file
]
// 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"