be0dd84a06
The check has already been partially implemented in org.jetbrains.kotlin.fir.resolve.calls.FirCallArgumentsProcessor. This change completes the missing piece that determines if a `FirFunction` has stable parameter names.
12 lines
222 B
Kotlin
Vendored
12 lines
222 B
Kotlin
Vendored
class A(foo: Int.() -> Unit) {
|
|
init {
|
|
4.foo()
|
|
}
|
|
}
|
|
|
|
fun test(foo: Int.(String) -> Unit) {
|
|
4.foo("")
|
|
4.<!INAPPLICABLE_CANDIDATE!>foo<!>(p1 = "")
|
|
4.foo(<!NAMED_ARGUMENTS_NOT_ALLOWED!>p2 = ""<!>)
|
|
}
|