FIR2IR fix enum special methods generation
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: E.java
|
||||
public enum E {
|
||||
OK(), A();
|
||||
public static void values(boolean b) {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun f(e: E) = when (e) {
|
||||
E.A -> E.values()[0].toString()
|
||||
else -> "?"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return f(E.A)
|
||||
}
|
||||
Reference in New Issue
Block a user