Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
BinaryExpressionIdentifier.fir.kt
blob: 05a276ef07e4ffe593ee07554aa582000106fd53 [
file
] [
log
] [
blame
]
// !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
}