"invoke" from function types do not have any meaningful parameter names
This commit is contained in:
@@ -4,6 +4,8 @@ class A(foo: Int.() -> Unit) {
|
||||
}
|
||||
}
|
||||
|
||||
fun test(foo: Int.() -> Unit) {
|
||||
4.foo()
|
||||
fun test(foo: Int.(String) -> Unit) {
|
||||
4.foo("")
|
||||
4.foo(<!NAMED_ARGUMENTS_NOT_ALLOWED, NAMED_PARAMETER_NOT_FOUND!>p1<!> = ""<!NO_VALUE_FOR_PARAMETER!>)<!>
|
||||
4.foo(<!NAMED_ARGUMENTS_NOT_ALLOWED!>p2<!> = "")
|
||||
}
|
||||
Reference in New Issue
Block a user