Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
prefixNullableClassIncrement.kt
blob: 5a75c163fa2f3dc0f55e2bfa5e76d206f258dccb [
file
] [
log
] [
blame
]
class
MyClass
operator
fun
MyClass
?.
inc
():
MyClass
?
=
null
fun box
()
:
String
{
var
i
:
MyClass
?
i
=
MyClass
()
val j
=
++
i
return
if
(
j
==
null
&&
null
==
i
)
"OK"
else
"fail i = $i j = $j"
}