first 'real' closure test, green

This commit is contained in:
Maxim Shafirov
2011-06-24 17:56:46 +04:00
parent c544e52494
commit ef1cbbfb36
6 changed files with 162 additions and 29 deletions
@@ -1,6 +1,6 @@
fun box() : String {
val cl = 39
return if (sum(200, { cl }) == 2) "OK" else "FAIL"
return if (sum(200, { cl }) == 239) "OK" else "FAIL"
}
fun sum(arg:Int, f : {() : Int}) : Int {