This message was deleted.
# announcements
s
This message was deleted.
d
In these cases I usually write the interface with a
KClass<T>
parameter and then write an inline extension which adapts it to a reified parameter.
j
Could you provide me an example?
Let me redo the question...
d
Copy code
interface Foo {
    fun <T : Any> methodWithTypeArg(type: KClass<T>)
}
inline fun <reified T : Any> Foo.methodWithTypeArg() = methodWithTypeArg(T::class)
That's what I meant, but maybe I am misunderstanding your question