blob: 7dd7b31853b6b12280e1e9c36b9ee4218464a5e1 [file] [log] [blame]
var result = ""
fun result(r: String) { result = r }
object Foo {
private operator fun String.unaryPlus() = "(" + this + ")"
fun foo() = { result(+"Stuff") }.let { it() }
}
fun box(): String {
Foo.foo()
return if (result == "(Stuff)") "OK" else "Fail $result"
}