Ah, I see @Olenyov Kirill. So this is a Swift <-> Objc interop problem. Actually I have an
Observable<List<SomeModel>>
and my use-case is the same as yours with
test2
k
kpgalligan
01/29/2020, 9:41 AM
I wrote the generics implementation. There are restrictions imposed by objective-c, such as you can’t have generics on interfaces (protocol in objc). Collection types have special handling in both objc->swift and in how the headers are generated from kotlin. In many general cases they work. You can certainly find cases where generic types are dropped as well.
kpgalligan
01/29/2020, 9:41 AM
Observable is an interface. It will not retain generics. That’s an objc problem.
n
nrobi
01/29/2020, 9:48 AM
Managed to work around the interface problem, with