dG
03/12/2019, 8:41 AMinline fun <reified T : SomeInterface> someFun(clazz: KClass<T>): Pair<T, T>
I call it like
someFun(SomeImplementation::class)
Intellij complains about clazz not being used; though I cannot remove it without compiler errors that the type of T could not be inferred.
What's the proper way?