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:
+12
@@ -0,0 +1,12 @@
|
||||
enum class <!CONFLICTING_JVM_DECLARATIONS, CONFLICTING_JVM_DECLARATIONS!>A<!> {
|
||||
A1
|
||||
A2
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun valueOf(s: String): A<!> = valueOf(s)
|
||||
|
||||
fun valueOf() = "OK"
|
||||
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>fun values(): Array<A><!> = null!!
|
||||
|
||||
fun values(x: String) = x
|
||||
}
|
||||
Reference in New Issue
Block a user