Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
memberExtOnLong.kt
blob: 26750d9c90f7824f21fa8af54ac0a0d02d82be96 [
file
] [
log
] [
blame
]
// WITH_STDLIB
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"
}
}