Hi! I have a generic interface ```interface Generi...
# kotlin-native
v
Hi! I have a generic interface
Copy code
interface GenericInterface<T> {
    fun add(value: T)
}
and I have an abstract class which inherits from this interface
Copy code
abstract class ConcreteClass : GenericInterface<DataClass>
and I want to implement
ConcreteClass
in Swift. Unfortunately the type information about
DataClass
is lost in interop code. Is there a way to workaround this?
Found a workaround. Declaring methods to override explicitly works:
Copy code
abstract class ConcreteClass : GenericInterface<DataClass> {
    abstract override fun add(value: DataClass)
}
🎉 2