I want to load a resource in a top level function using Class.getResourceAsStream().
Class.getResourceAsStream()
Is there any way to get a reference to the class that the top level
In the absence of a way to get a reference directly, I've fallen back on creating an anonymous object in the current package
val myThing = object: Any() {}.javaClass.getResourceAsStream(...)