<@UAM78Q8PN> There's this ugly hack, which is pro...
# announcements
d
@Andrei There's this ugly hack, which is probably going to break eventually:
Copy code
class MyClass {
    fun foo() = printCallee<Any?>() // prints "MyClass"
}

abstract class WithParameter<T>
inline fun <reified T> printCallee() {
    val thing = object : WithParameter<T>() {}
    println(thing.javaClass.enclosingClass)
}