Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
box
/
when
/
sealedWhenInitialization.kt
blob: 59ef24d3984a62c180cdaf86212e4b2e235cabaf [
file
]
// IGNORE_BACKEND_FIR: JVM_IR
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"
}