Hi All, is there any way to create a class that im...
# getting-started
r
Hi All, is there any way to create a class that implements the same interface multiple times with two generic parameters, where one parameter is a subclass of the other? i.e.
Copy code
interface A
interface MutableA : A

interface Container<out E> : List<E>
interface MutableContainer<out MUTABLE : READ, out READ> : Container<READ>, MutableList<MUTABLE>
h
No, because at runtime the generic type is erased.
👍 1