Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
postfixNullableIncrement.kt
blob: 2f7a94c532eeec94e62d1947a748ddfdd594d764 [
file
] [
log
] [
blame
]
operator
fun
Int
?.
inc
():
Int
?
=
this
fun init
():
Int
?
{
return
10
}
fun box
()
:
String
{
var
i
:
Int
?
=
init
()
val j
=
i
++
return
if
(
j
==
10
&&
10
==
i
)
"OK"
else
"fail i = $i j = $j"
}