Well, you could write a function like `fun <T&g...
# getting-started
d
Well, you could write a function like
fun <T> doSomethingWithClassOfT(something: T, classArg: Class<T>) { … }
which will get you a generified method using T. Do you have some example code in another language for what you’re trying to achieve?
Foo::class.java
is usually how you get a class reference.