Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
increment
/
kt36956.kt
blob: ba9fe2f0f37375f6cf05c3a6f80c8d74324ee3ef [
file
]
class
Cell
(
var
x
:
Int
)
{
operator
fun
get
(
i
:
Int
)
=
x
operator
fun
set
(
i
:
Int
,
v
:
Int
)
{
x
=
v
}
}
fun box
():
String
{
val c
=
Cell
(
0
)
(
c
[
0
])++
if
(
c
[
0
]
!=
1
)
return
"Fail"
return
"OK"
}