How does the reified keyword in Kotlin work?
TL;DR: What is reified good for fun <T> myGenericFun(c: Class<T>) In the body of a generic function like myGenericFun, you can’t access the type T because it’s only available at compile time but erased at runtime. Therefore, if you want to use the generic type as a normal class in the function body you need … Read more