1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
8 lines
169 B
Kotlin
8 lines
169 B
Kotlin
fun box() : String {
|
|
return if (apply( 5, {arg: Int -> arg + 13 } ) == 18) "OK" else "fail"
|
|
}
|
|
|
|
fun apply(arg : Int, f : (p:Int) -> Int) : Int {
|
|
return f(arg)
|
|
}
|