Files
kotlin-fork/compiler/testData/diagnostics/tests/kt435.kt
T
Valentin Kipyatkov 6b94e5fd34 Use parameter names from function type for invoke() function
#KT-435 Fixed
 #KT-9016 Fixed
2016-10-11 23:38:49 +03:00

7 lines
122 B
Kotlin
Vendored

fun Any.foo1() : (i : Int) -> Unit {
return {}
}
fun test(a : Any) {
a.foo1()(<!NO_VALUE_FOR_PARAMETER(i)!>)<!>
}