Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
4f8dad3e4ba00e23b4182ef4c50194b20bd43c8f
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
nullabilityAndSmartCasts
/
NullableNothingIsExactlyNull.kt
blob: e669cb2e480ee3fc5a36a13ba78eb5b9357f84cd [
file
]
fun test
()
{
val
out
:
Int
?
=
null
val x
:
Nothing
?
=
null
if
(
out
!=
<!
DEBUG_INFO_CONSTANT
!>
x
<!>)
<!
DEBUG_INFO_SMARTCAST
!>
out
<!>.
plus
(
1
)
if
(
out
==
<!
DEBUG_INFO_CONSTANT
!>
x
<!>)
return
<!
DEBUG_INFO_SMARTCAST
!>
out
<!>.
plus
(
1
)
}