interface Foo fun Foo.foo(a: Int) {} fun test(foo: Foo) { consume(Foo::foo) } fun consume(f: (Foo, Int) -> Unit) {}