Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
BinaryExpressionEqualsConvention.fir.kt
blob: a788666464e5363f17f1b2ccfb47c033af5061ef [
file
]
// CHECK_TYPE
interface
A
interface
B
:
A
fun foo1
(
a
:
A
,
b
:
B
):
Boolean
{
val result
=
(
a
as
B
)
==
b
checkSubtype
<
B
>(
a
)
return
result
}
fun foo2
(
a
:
A
,
b
:
B
):
Boolean
{
val result
=
b
==
(
a
as
B
)
checkSubtype
<
B
>(
a
)
return
result
}