Use parameter names from function type for invoke() function

#KT-435 Fixed
 #KT-9016 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-09-13 22:02:59 +03:00
parent 0abb2edb2b
commit 6b94e5fd34
9 changed files with 82 additions and 12 deletions
+7
View File
@@ -0,0 +1,7 @@
fun Any.foo1() : (i : Int) -> Unit {
return {}
}
fun test(a : Any) {
a.foo1()(<!NO_VALUE_FOR_PARAMETER(i)!>)<!>
}