Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
4f8dad3e4ba00e23b4182ef4c50194b20bd43c8f
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
BinaryExpressionIdentifier.fir.kt
blob: 05a276ef07e4ffe593ee07554aa582000106fd53 [
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
}