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
@@ -0,0 +1,14 @@
enum class E {
A;
fun values(b: Boolean) {}
fun E.values(): Array<E> = arrayOf(A)
}
fun f(e: E) = when (e) {
E.A -> "OK"
}
fun box(): String {
return f(E.A)
}