Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
when
/
exhaustiveWhenInitialization.kt
blob: 6af56c7ecc5614301a606751d36a74d66dc0a607 [
file
] [
log
] [
blame
]
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"
}
// 0 TABLESWITCH
// 1 LOOKUPSWITCH
// 1 ATHROW