Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
memberExtOnLong.kt
blob: c51bf9b901d20f3155b295bbaa9190f17b2c0ee0 [
file
] [
log
] [
blame
]
// WITH_RUNTIME
object
ExtProvider
{
operator
fun
Long
.
get
(
i
:
Int
)
=
this
operator
fun
Long
.
set
(
i
:
Int
,
newValue
:
Long
)
{}
}
fun box
():
String
{
with
(
ExtProvider
)
{
var
x
=
0L
val y
=
x
[
0
]++
return
if
(
y
==
0L
)
"OK"
else
"Failed, y=$y"
}
}