// !LANGUAGE: +NewInference // !DIAGNOSTICS: -UNUSED_PARAMETER interface A interface B fun fooB(b: B) {} fun bar(f: (T) -> Unit, e: T) {} fun baz(e: T, f: (T) -> Unit) {} fun test(a: A, b: B) { // Note that diagnostic is always on callable references as they are resolved after simple arguments baz(a, ::fooB) bar(::fooB, a) }