FIR2IR fix enum special methods generation

This commit is contained in:
Dmitry Petrov
2021-11-22 17:10:25 +03:00
committed by Space
parent 2a263eca65
commit 2179987de7
10 changed files with 146 additions and 12 deletions
+18
View File
@@ -0,0 +1,18 @@
// TARGET_BACKEND: JVM
// FILE: E.java
public enum E {
A();
public static String values(String s) {
return s;
}
}
// FILE: test.kt
fun f(e: E) = when (e) {
E.A -> E.values("OK")
}
fun box(): String {
return f(E.A)
}