Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
smartCasts
/
kt51460.kt
blob: 57c3f343170d30dab33ee978b0b7dac01fa0ba8d [
file
]
// FIR_IDENTICAL
// ISSUE: KT-51460
abstract
class
A
{
abstract
protected
val a
:
A
?
class
B
(
override
val a
:
A
?)
:
A
()
{
fun f
(
other
:
A
)
{
val x
=
if
(
other
is
C
)
{
other
.
a
}
else
{
null
}
}
}
class
C
(
override
val a
:
A
?):
A
()
}