Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
when
/
exhaustiveWhenInitialization.kt
blob: ccf67614e6ce7b3d94973ac4169f328bf1ae3d3f [
file
]
enum
class
A
{
V
}
fun box
():
String
{
val a
:
A
=
A
.
V
val b
:
Boolean
when
(
a
)
{
A
.
V
->
b
=
true
}
return
if
(
b
)
"OK"
else
"FAIL"
}