Hi Kotlin community,
Extension functions are resolved statically, and through reflection with Java I’m able to retrieve the upper class of an extension function like so. So if I place an extension function in a file called TestExtension.kt I will be able to access TextExtensionKt.class in Java. Is there a way to access this class in Kotlin too?
I’m trying to use reflection for some unit test purposes (finding ways to mock static/extension functions) but in order to do this I need a reference to the enclosing class.
Thanks in advance!