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