Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
BinaryExpressionIdentifier.fir.kt
blob: 6ae0298d591c83d410f92c7c09b9dece4efefdf1 [
file
]
// CHECK_TYPE
infix fun
Int
.
compareTo
(
o
:
Int
)
=
0
fun foo
(
a
:
Number
):
Int
{
val result
=
(
a
as
Int
)
compareTo a
checkSubtype
<
Int
>(
a
)
return
result
}
fun bar
(
a
:
Number
):
Int
{
val result
=
42
compareTo
(
a
as
Int
)
checkSubtype
<
Int
>(
a
)
return
result
}