Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
when
/
exhaustiveWhenInitialization.kt
blob: 8d750b70f73bb90521fa19a04b19fdbbcbd53744 [
file
] [
log
] [
blame
]
enum
class
A
{
V1
,
V2
,
V3
}
fun test
(
a
:
A
)
{
val x
:
Int
when
(
a
)
{
A
.
V1
->
x
=
11
A
.
V2
->
x
=
22
A
.
V3
->
x
=
33
}
}
// 1 TABLESWITCH
// 0 LOOKUPSWITCH
// 1 ATHROW