1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
7 lines
140 B
Kotlin
7 lines
140 B
Kotlin
fun f(a : Int?, b : Int.(Int)->Int) = a?.b(1)
|
|
|
|
fun box(): String {
|
|
val x = f(1) { this+it+2 }
|
|
return if (x == 4) "OK" else "fail"
|
|
}
|