5b1993f62a
Import enum class's static scope into its class object's member scope
19 lines
363 B
Kotlin
19 lines
363 B
Kotlin
enum class E {
|
|
ENTRY
|
|
|
|
class object {
|
|
fun foo(): E = ENTRY
|
|
fun bar(): Array<E> = values()
|
|
fun baz(): E = valueOf("ENTRY")
|
|
val valuez = values()
|
|
}
|
|
|
|
fun oof(): E = ENTRY
|
|
fun rab(): Array<E> = values()
|
|
fun zab(): E = valueOf("ENTRY")
|
|
}
|
|
|
|
fun foo() = E.ENTRY
|
|
fun bar() = E.values()
|
|
fun baz() = E.valueOf("ENTRY")
|