Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
5e49b472f81ed95098eec9749aa2ad0415fac731
/
.
/
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
}