Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0c8f3faeecbeecb0d1430ef2b86dd192a029711c
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
postfixIncrementDoubleSmartCast.kt
blob: 2679d496638f0e81585dfd1f7ba4379e7ee880f9 [
file
]
fun box
()
:
String
{
var
i
:
Int
?
i
=
10
// We have "double" smart cast here:
// first on i and second on i++
// Back-end should NOT think that both i and j are Int
val j
:
Int
=
i
++
return
if
(
j
==
10
&&
11
==
i
)
"OK"
else
"fail j = $j i = $i"
}