JVM IR: Handle overloaded values functions in MappedEnumWhenLowering
Fixes KT-46579.
This commit is contained in:
committed by
Alexander Udalov
parent
5d30576d28
commit
6aaff9dfb7
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user