Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
BinaryExpression.kt
blob: 576af58b7066cb3486c790eb9be9314339e02247 [
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
(<!
TYPE_MISMATCH
!>
if
(
x
==
null
)
<!
DEBUG_INFO_CONSTANT
!>
x
<!>
else
x
<!>)
if
(
x
!=
null
)
bar
(
x
+
x
/(
x
-
x
*
x
))
}