mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
Place valueOf() and values() into the static scope of the corresponding enum class #KT-5580 Fixed #KT-2410 Fixed
11 lines
166 B
Kotlin
11 lines
166 B
Kotlin
enum class E {
|
|
ENTRY
|
|
|
|
private class object
|
|
}
|
|
|
|
fun foo() = E.values()
|
|
fun bar() = E.valueOf("ENTRY")
|
|
fun baz() = E.ENTRY
|
|
fun quux() = <!INVISIBLE_MEMBER!>E<!>
|