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