Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
javaEnumValues3.kt
blob: 8233cf685e7209cb6ae0906e68c835fb27566734 [
file
]
// TARGET_BACKEND: JVM
// FILE: E.java
public
enum
E
{
OK
(),
A
();
public
static
void
values
(
boolean
b
)
{}
}
// FILE: test.kt
fun f
(
e
:
E
)
=
when
(
e
)
{
E
.
A
->
E
.
values
()[
0
].
toString
()
else
->
"?"
}
fun box
():
String
{
return
f
(
E
.
A
)
}