Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/callableReferencesStaticMemberClash.fir.kt
T

17 lines
256 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: A.java
public class A {
public static void foo() {}
public static void foo(String x) {}
private void foo(int y) {}
}
// FILE: main.kt
fun baz(x: (String) -> Unit) {}
fun bar() {
baz(A::foo)
}