Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
260e8dfd39d86c4c5db834113ee010d647f3995e
/
.
/
compiler
/
testData
/
codegen
/
boxJvm
/
increment
/
incDecWith2Receivers.kt
blob: 729f15c2b2c97e376b5fb12001553b1a2dda710c [
file
]
// TARGET_BACKEND: JVM
class
MatchSticks
{
operator
fun
String
.
inc
()
=
this
+
"|"
}
fun box
():
String
{
var
s
=
""
with
(
MatchSticks
())
{
s
++
s
++
}
return
if
(
s
==
"||"
)
{
"OK"
}
else
{
"NOK: $s"
}
}