Skip to content
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

fix(typings): fixed Subject<T>.lift to have the same shape as Observable<T>.lift #2035

Merged
merged 1 commit into from
Oct 14, 2016

Conversation

david-driscoll
Copy link
Member

Description:
This addresses the problem described in #2029.

Observable<T> implements lift<R>(...)
Subject<T> implements lift<T, R>(...)

The extra generic type argument T, causes type inference to break in horrible ways.

Related issue (if exists):
#2029

@david-driscoll
Copy link
Member Author

I did investigate a way to make a compile time test that would fail if this happens again... but it's really hard to make the compiler fail when it gives you an any type.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.039% when pulling b07f597 on david-driscoll:fix-subject-lift into 4c31974 on ReactiveX:master.

@kwonoj
Copy link
Member

kwonoj commented Oct 14, 2016

LGTM

@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants