mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
244 B
Plaintext
Vendored
12 lines
244 B
Plaintext
Vendored
>>> enum class E {
|
|
... FIRST {
|
|
... override fun foo() = "HELLO"
|
|
... },
|
|
... SECOND {
|
|
... override fun foo() = "WORLD"
|
|
... };
|
|
... open fun foo() = "E"
|
|
... }
|
|
>>> E.FIRST.foo() + " " + E.SECOND.foo()
|
|
HELLO WORLD
|