Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
javaEnumValues2.kt
blob: 757bc21bb3a55ef2866d5e3903e7648514f1a225 [
file
]
// 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
)
}