Closed shlauzer closed 2 months ago
Hi! Interfaces lose generics in Swift due to interop limitations, so this is expected behavior.
I agree that the wording of the article's last sentence can be slightly confusing, so I changed it. (The intent was to say that sealed interfaces are supported as well, not that they support generics.)
According to the article https://touchlab.co/sealed-generics-and-skie, I expected that sealed interfaces with generics will have a parametrized equivalent type in Swift code, but it doesn't. For example:
In this case, I get a compile error in XCode when I define the type
LceInitialState<State, KotlinUnit>)
. But if I replace interface with class, it starts working.My SKIE version is 0.8.4.