Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
smartCasts
/
kt10483.fir.kt
blob: 370f2ca6299d8ed78d40e3047eb984fa24b93612 [
file
]
interface
A
class
B
:
A
{
operator
fun invoke
()
=
this
}
class
C
:
A
operator
fun C
.
invoke
():
B
=
B
()
fun foo
(
arg
:
A
):
B
?
{
if
(
arg
is
B
)
return
arg
()
if
(
arg
is
C
)
return
arg
()
return
null
}