Files
kotlin-fork/compiler/testData/codegen/regressions/kt1061.kt
T
Svetlana Isakova 22e9e7de10 more small tests
2012-05-04 20:47:26 +04:00

8 lines
153 B
Kotlin

//KT-1061 Can't call function defined as a val
object X {
val doit = { (i: Int) -> i }
}
fun box() : String = if (X.doit(3) == 3) "OK" else "fail"