Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
codegen
/
box
/
objects
/
kt694.kt
blob: 945e12984892a57f479130d72557438d5b34fb6f [
file
] [
log
] [
blame
]
enum
class
Test
{
A
,
B
,
C
}
fun checkA
(
a
:
Test
)
=
when
(
a
)
{
Test
.
B
->
false
Test
.
A
->
true
else
->
false
}
fun box
()
:
String
{
if
(!
checkA
(
Test
.
A
))
return
"fail"
if
(
checkA
(
Test
.
C
))
return
"fail"
if
(
checkA
(
Test
.
B
))
return
"fail"
return
"OK"
}