Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
compiler
/
testData
/
codegen
/
box
/
nullCheckOptimization
/
trivialInstanceOf.kt
blob: 89a0f2d67ad4b8a0c10f6cca071fddbb01c45c65 [
file
]
sealed
class
A
{
class
B
:
A
()
class
C
:
A
()
}
inline
fun foo
():
A
=
A
.
B
()
fun box
():
String
{
val a
:
A
=
foo
()
val b
:
Boolean
when
(
a
)
{
is
A
.
B
->
b
=
true
is
A
.
C
->
b
=
false
}
return
if
(
b
)
"OK"
else
"FAIL"
}