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