`someFun<SomeImplementation>()` and remove t...
# getting-started
k
someFun<SomeImplementation>()
and remove the
clazz
pqrameter.
😀 1
d
ah, without the ::class! Thanks
e
T::class.java call in you method is same as clazz: KClass<T>
d
@eason I did not get that. Are you talking about the function args? KClass<T> would also enforce only kotlin classes, right?
e
if you want to get T’s class, you have already reified it so no need to pass class argument
use T::class.java directly
👍 1