FIR: check NAMED_ARGUMENTS_NOT_ALLOWED
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.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
0d4e9ca0b9
commit
be0dd84a06
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// FILE: KotlinFile.kt
|
||||
fun foo(javaClass: JavaClass) {
|
||||
javaClass.doSomething(p = 1) {
|
||||
javaClass.doSomething(<!NAMED_ARGUMENTS_NOT_ALLOWED!>p = 1<!>) {
|
||||
bar()
|
||||
}
|
||||
}
|
||||
@@ -11,4 +11,4 @@ fun bar(){}
|
||||
// FILE: JavaClass.java
|
||||
public class JavaClass {
|
||||
public void doSomething(int p, Runnable runnable) { runnable.run(); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user