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