Drop enum class object hack
Place valueOf() and values() into the static scope of the corresponding enum class #KT-5580 Fixed #KT-2410 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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<!>
|
||||
Reference in New Issue
Block a user