Navigation Menu

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

Improve BFTask.continue return type when used with generics. #198

Merged
merged 1 commit into from Nov 13, 2015

Conversation

nlutsenko
Copy link
Member

At the moment of continuing from a BFTask that has a generic type - using instancetype will re-use the same generic type, whilst this is redundant and might not be the case.

By chaining the return type back to BFTask * we can make sure that we still return a BFTask, but it won't have a specific generic type anymore.

@nlutsenko nlutsenko added this to the 1.5.0 milestone Nov 13, 2015
nlutsenko added a commit that referenced this pull request Nov 13, 2015
…ations

Improve BFTask.continue return type when used with generics.
@nlutsenko nlutsenko merged commit 78d5e63 into master Nov 13, 2015
@nlutsenko nlutsenko deleted the nlutsenko.generic.continuations branch November 13, 2015 03:42
@facebook-github-bot
Copy link
Contributor

@nlutsenko updated the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants