Files
kotlin-fork/compiler/testData/codegen/box/enum/javaEnumValues2.kt
T
2021-11-23 06:34:33 +00:00

19 lines
247 B
Kotlin
Vendored

// 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)
}