mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
16 lines
355 B
Kotlin
Vendored
16 lines
355 B
Kotlin
Vendored
enum class Bar {
|
|
ONE {
|
|
override fun toString(): String {
|
|
if (this != TWO && this == ONE) return "OK" else return "FAIL"
|
|
}
|
|
},
|
|
TWO;
|
|
}
|
|
|
|
fun box(): String {
|
|
return Bar.ONE.toString()
|
|
}
|
|
|
|
// 1 IF_ACMPNE
|
|
// 1 IF_ACMPEQ
|
|
// 0 INVOKESTATIC kotlin/jvm/internal/Intrinsics.areEqual \(Ljava/lang/Object;Ljava/lang/Object;\)Z |