Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
nullCheckOptimization
/
trivialInstanceOf.kt
blob: 89a0f2d67ad4b8a0c10f6cca071fddbb01c45c65 [
file
] [
log
] [
blame
]
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"
}