Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
prefixIncrementOnClass.kt
blob: 231bcc9a6536e5e28fcffcfd14fdfd14f793f267 [
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
Derived
&&
i
is
Derived
)
"OK"
else
"fail j = $j i = $i"
}