Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
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"
}
}