JVM IR: Handle overloaded values functions in MappedEnumWhenLowering

Fixes KT-46579.
This commit is contained in:
Steven Schäfer
2021-05-12 17:36:15 +02:00
committed by Alexander Udalov
parent 5d30576d28
commit 6aaff9dfb7
12 changed files with 155 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: E.java
public enum E {
A();
public static void values(boolean b) {
}
}
// FILE: test.kt
fun f(e: E) = when (e) {
E.A -> "OK"
}
fun box(): String {
return f(E.A)
}