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