c0fc5cfb53
SAM adapters are Java functions, and named arguments are not allowed for Java functions #KT-5022 Fixed
17 lines
275 B
Kotlin
17 lines
275 B
Kotlin
// 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)
|
|
}
|