// !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // !WITH_NEW_INFERENCE // FILE: Foo.java import kotlin.Unit; import kotlin.jvm.functions.Function1; class Foo { interface FObject { void invoke(T i); } public String foo(FObject f) { return ""; } public int foo(Function1 f) { return 1; } public String bar(FObject f) { return ""; } public int bar(Function1 f) { return 1; } } // FILE: 1.kt fun test() { Foo().foo {} checkType { _() } Foo().bar {} checkType { _() } }