-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compose/Transform Covariance #1569
Compose/Transform Covariance #1569
Conversation
Failing test while exploring generic variance for ReactiveX#1416
RxJava-pull-requests #1481 FAILURE |
@abersnaze Thank you for fixing this ... I think I tried every permutation of super/extends except the right one that you came up with! |
RxJava-pull-requests #1486 SUCCESS |
…iance Compose/Transform Covariance
Returning
I propose zsxwing@855252b#diff-d41d8cd98f00b204e9800998ecf8427e just like other methods that avoids to return |
Can you submit that as a PR? Why in this use case must R not extend ? whereas the lift case does? |
Please take a look at #1577 |
Failing test while exploring generic variance for #1416
Code like this makes these generics work:
however, I couldn't get the
compose
/Transformer
types to correctly work.Anyone else want to help figure out generics for this?
See https://github.com/Netflix/RxJava/blob/master/rxjava-core/src/main/java/rx/Observable.java#L195