Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
5e49b472f81ed95098eec9749aa2ad0415fac731
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
nullabilityAndSmartCasts
/
kt2223.kt
blob: 0f69ee916543c9981e3267c808a18230067597f6 [
file
]
// FIR_IDENTICAL
//KT-2223 Comparing non-null value with null might produce helpful warning
package
kt2223
fun foo
()
{
val x
:
Int
?
=
null
if
(
x
==
null
)
return
if
(<!
SENSELESS_COMPARISON
!>
x
==
null
<!>)
return
}