Esa
09/18/2020, 9:16 AMKFunction<*>
? I've got a weird situation where kfunction.javaClass.enclosingClass.simpleName works in one situation, but not another situation.diesieben07
09/18/2020, 9:22 AMjavaClass
here will always return the Class
for KFunction
, probably not what you want.
You most likely want something like myKFunction.javaMethod?.getDeclaringClass
to get the Class declaring the methodEsa
09/18/2020, 9:38 AM