incorporating Sveta's patch on VariableAsFunctionResolvedCall

This commit is contained in:
Alex Tkachman
2012-05-03 12:56:51 +03:00
parent 6626086abf
commit d58e988ca5
18 changed files with 102 additions and 136 deletions
@@ -0,0 +1,8 @@
fun box() : String {
val y = 12
val op = { (x:Int) -> (x + y).toString() }
val op2 : Int.(Int) -> String = { op(this + it) }
return if("27" == 5.op2(10)) "OK" else "fail"
}