Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ebcc2cc3b207156c1c0e90e5107aa356b8fa8d72
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
prefixIncrementOnSmartCast.kt
blob: d4e5f7d523ccda69a1ce0c6b2735122f1ca8790d [
file
]
fun box
()
:
String
{
var
i
:
Int
?
i
=
10
// Prefix increment on a smart cast should work
val j
=
++
i
return
if
(
j
==
11
&&
11
==
i
)
"OK"
else
"fail j = $j i = $i"
}