Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
postfixIncrementOnClass.kt
blob: 834baa050b111d3c793157290837bc8629438c33 [
file
] [
log
] [
blame
]
interface
Base
class
Derived
:
Base
class
Another
:
Base
operator
fun
Base
.
inc
():
Derived
{
return
Derived
()
}
fun box
()
:
String
{
var
i
:
Base
i
=
Another
()
val j
=
i
++
return
if
(
j
is
Another
&&
i
is
Derived
)
"OK"
else
"fail j = $j i = $i"
}