nrobi
01/22/2020, 2:54 PM-Xobjc-generics
? I’m getting Any?
on iOS when I’m trying to consume some genericskpgalligan
01/22/2020, 3:12 PMnrobi
01/22/2020, 3:14 PMvanniktech
01/22/2020, 3:33 PMT : Any
since just T
could be String?
which can be null. I also got bitten by this// T : Any so that Swift understands that T can never be null.
sealed class SuccessFailure<T : Any>
nrobi
01/22/2020, 4:08 PMObservable<T>
. And if I’m trying to observe
an Observable<String>
for example it cannot infer the type on iOS only Any?
kpgalligan
01/22/2020, 4:09 PMObservable
?nrobi
01/22/2020, 4:40 PM