import kotlin.reflect.KMemberFunction0 class A(val t: T) { fun foo(): T = t } fun bar() { val x = A::foo x : KMemberFunction0, String> }