interface Foo val Foo.foo: String get() = "" fun test(obj: Foo) { consume(obj::foo) } fun consume(f: () -> String) {}