Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
testsWithStdLib
/
smartcasts
/
whileLoopNotNull.fir.kt
blob: 731d5c86e186e0b26df5a34c54983022751cbcf9 [
file
]
// FIR_DUMP
fun
Int
?.
swap
():
Int
=
1
fun
Int
.
swap
():
Int
?
=
null
var
result
=
false
fun b
():
Boolean
{
result
=
!
result
return
result
}
fun test
()
{
var
x
:
Int
?
=
1
if
(
x
!=
null
)
{
while
(
b
())
{
val tmp
=
x
.
swap
()
x
=
tmp
}
x
.
plus
(
1
)
}
}