Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
enum
/
whenInObject.kt
blob: 39234df7d8483fca8d8e6c1cf24499cff6fe4ccf [
file
] [
log
] [
blame
]
enum
class
E
{
OK
,
NOT_OK
}
interface
I
{
fun f
(
e
:
E
):
String
}
val obj
=
object
:
I
{
override
fun f
(
e
:
E
)
=
when
(
e
)
{
E
.
OK
->
"OK"
E
.
NOT_OK
->
"NOT OK"
}
}
fun box
()
=
obj
.
f
(
E
.
OK
)