KT-395
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
fun Any.with(operation : fun Any.() : Any) = operation().toString()
|
||||
|
||||
val f = { (a : Int) :Unit => }
|
||||
|
||||
fun box () : String {
|
||||
return if(20.with {
|
||||
this
|
||||
} == "20")
|
||||
"OK"
|
||||
else
|
||||
"fail"
|
||||
}
|
||||
Reference in New Issue
Block a user