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