Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/Jet124.kt
T
Andrey Breslav 3d8d92c7d3 JetDiagnosticsTest migrated to TestGenerator
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00

9 lines
161 B
Kotlin

fun foo1() : (Int) -> Int = { (x: Int) -> x }
fun foo() {
val h : (Int) -> Int = foo1();
h(1)
val m : (Int) -> Int = {(a : Int) -> 1}//foo1()
m(1)
}