Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
4f8dad3e4ba00e23b4182ef4c50194b20bd43c8f
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
nullabilityAndSmartCasts
/
smartCastsAndBooleanExpressions.kt
blob: 58c2896714ad10ef38fd9f8fceed12710c84df3b [
file
]
fun foo
(
b
:
Boolean
?,
c
:
Boolean
)
{
if
(
b
!=
null
&&
<!
DEBUG_INFO_SMARTCAST
!>
b
<!>)
{}
if
(
b
==
null
||
<!
DEBUG_INFO_SMARTCAST
!>
b
<!>)
{}
if
(
b
!=
null
)
{
if
(<!
DEBUG_INFO_SMARTCAST
!>
b
<!>
&&
c
)
{}
if
(<!
DEBUG_INFO_SMARTCAST
!>
b
<!>
||
c
)
{}
}
}