first 'real' closure test, green
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user