import kotlin.reflect.KFunction0 class A class B fun A.ext() { val x = ::A val y = ::B x : KFunction0 y : KFunction0 }