mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
9 lines
130 B
Kotlin
Vendored
9 lines
130 B
Kotlin
Vendored
enum class E {
|
|
I
|
|
}
|
|
|
|
fun box(): String {
|
|
val i = (E::name.getter)(E.I)
|
|
if (i != "I") return "Fail $i"
|
|
return "OK"
|
|
} |