Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
21de67cac1bef9259daa407b68a12e178923aef3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
when
/
sealedWhenInitialization.kt
blob: 2d70f2ce77eb0bee92c3f312e21a4d5e3529a65c [
file
]
sealed
class
A
{
object
B
:
A
()
class
C
:
A
()
}
fun box
():
String
{
val a
:
A
=
A
.
C
()
val b
:
Boolean
when
(
a
)
{
A
.
B
->
b
=
true
is
A
.
C
->
b
=
false
}
return
if
(!
b
)
"OK"
else
"FAIL"
}
// 0 TABLESWITCH
// 0 LOOKUPSWITCH
// 1 ATHROW