annotation class Foo(val kfun: KFunction<*>) fun bar() { // ... } @Foo(::bar) fun baz() { // ... }