test for KT-1247 (duplicate of KT-1918)

This commit is contained in:
Dmitry Jemerov
2012-06-02 23:24:14 +02:00
parent 58666f3eb7
commit 2020446412
2 changed files with 11 additions and 0 deletions
@@ -0,0 +1,6 @@
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"
}