Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
kt5182WhenBranches.fir.kt
blob: fdceaaa2d8ec9991fc7036902259f678eb38a09a [
file
]
//KT-5182 Data flow info is lost for 'when' branches
open
class
A
class
B
:
A
()
{
fun foo
()
=
1
}
fun foo
(
a
:
A
)
=
when
{
a
!
is
B
->
2
true
->
a
.
foo
()
//'foo' is unresolved, smart cast doesn't work
else
->
a
.
foo
()
}