Disallow named arguments for SAM adapters
SAM adapters are Java functions, and named arguments are not allowed for Java functions #KT-5022 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// FILE: test/J.java
|
||||
|
||||
package test;
|
||||
|
||||
public class J {
|
||||
public static void foo(String s, Runnable r, Boolean z) {
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: usage.kt
|
||||
|
||||
package test
|
||||
|
||||
fun test() {
|
||||
J.foo("", <!NAMED_ARGUMENTS_NOT_ALLOWED!>r<!> = { }, <!NAMED_ARGUMENTS_NOT_ALLOWED!>z<!> = false)
|
||||
}
|
||||
Reference in New Issue
Block a user