tests: Update external tests (1.1.2-dev-393)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
var result = ""
|
||||
fun result(r: String) { result = r }
|
||||
|
||||
object Foo {
|
||||
private operator fun String.unaryPlus() = "(" + this + ")"
|
||||
|
||||
fun foo() = { result(+"Stuff") }()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
Foo.foo()
|
||||
return if (result == "(Stuff)") "OK" else "Fail $result"
|
||||
}
|
||||
Reference in New Issue
Block a user