I'm declaring a `Map<KClass<out SomeClass&gt...
# announcements
t
I'm declaring a
Map<KClass<out SomeClass>, KSerialzier<out SomeClass>
is there a way to make sure both generic types refer to the same type analogous to java e.g. https://www.informit.com/articles/article.aspx?p=2861454&amp;seqNum=8
f
Copy code
interface HeteroMap<T : Any> : Map<KClass<T>, KSerialzier<T>>
t
ah good point, thank you 🙂