Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
smartCasts
/
localObjectChanges.fir.kt
blob: 24f1c8185047b3adb9a31aa5d9db511e575bd1fa [
file
]
fun trans
(
n
:
Int
,
f
:
()
->
Boolean
)
=
if
(
f
())
n
else
null
fun foo
()
{
var
i
:
Int
?
=
5
if
(
i
!=
null
)
{
// Write is AFTER this place
i
.
hashCode
()
object
{
fun bar
()
{
i
=
null
}
}.
bar
()
<!
SMARTCAST_IMPOSSIBLE
!>
i
<!>.
hashCode
()
}
}