Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
BinaryExpression.fir.kt
blob: 7228428219f6ef30975c5fa89ffafb645706de37 [
file
]
// DIAGNOSTICS: -DEBUG_INFO_SMARTCAST
fun bar
(
x
:
Int
):
Int
=
x
+
1
fun foo
()
{
val x
:
Int
?
=
null
bar
(
1
+
(
if
(
x
==
null
)
0
else
x
))
bar
(<!
ARGUMENT_TYPE_MISMATCH
!>
if
(
x
==
null
)
x
else
x
<!>)
if
(
x
!=
null
)
bar
(
x
+
x
/(
x
-
x
*
x
))
}