Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
smartCasts
/
extensionSafeCall.fir.kt
blob: ecc8bc20159823a825c3e2f2ff2a723c67fa76dd [
file
]
class
Your
fun
Your
.
foo
()
=
Any
()
fun
<
T
>
T
?.
let
(
f
:
(
T
)
->
Unit
)
{
if
(
this
!=
null
)
f
(
this
)
}
fun test
(
your
:
Your
?)
{
(
your
?.
foo
()
<!
USELESS_CAST
!>
as
?
Any
<!>)?.
let
{}
// strange smart cast to 'Your' at this point
your
<!
UNSAFE_CALL
!>.<!>
hashCode
()
}