Justin Tarnoff
03/04/2023, 3:15 AMA that's part of a library that I'm writing that is getting pulled into a sample app through Gradle. `A`'s constructor contains parameter of type SharedFlow<C> where C is a subclass of B
When I import the library in my Android app, I see in the decompiled code that the parameter is listed as type SharedFlow<out B>. The compiler is complaining that it is looking for SharedFlow<B> but I'm providing SharedFlow<C>. While I loosely understand generics, I don't understand what is happening here. Can anyone explain?Kevin Worth
03/06/2023, 4:08 PMJustin Tarnoff
03/06/2023, 4:19 PMFlow and not a SharedFlow unless I need to use the replay cache based on this conversation:
https://kotlinlang.slack.com/archives/CRJCTR5PD/p1625556094048000?thread_ts=1625493055.046500&cid=CRJCTR5PD