Yet another bump for this topic. How does it work in this case? There is no class in SomeFile.kt
, only a bunch of functions:
// SomeFile.kt
package some.pkg
fun someFun() = 42
fun main(args: Array<String>) {
SomeFile::class.java // does not work
SomeFileKt::class.java // does not work
::class.java // does not work
}
Still, I would like to get access to the class file (for a call to getResourceAsStream(...)
).