Skip to content

Infer from arrows from usage. #28832

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

Merged
merged 2 commits into from
Dec 4, 2018
Merged

Infer from arrows from usage. #28832

merged 2 commits into from
Dec 4, 2018

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Dec 4, 2018

Previously only function expressions were, and only those with an easily accessible name. Now any arrow function or function expression will infer from usage.

Fixes #28826

Previously only function expressions were, and only those with an easily
accessible name. Now any arrow function or function expression will
infer from usage.
@sandersn
Copy link
Member Author

sandersn commented Dec 4, 2018

I'll port this to 3.2 if we decide to ship to 3.2.2.

*all* functions are applicable for inference now.
@sandersn sandersn merged commit 594430f into master Dec 4, 2018
@sandersn sandersn deleted the infer-arrows-from-usage branch December 4, 2018 17:03
@sandersn
Copy link
Member Author

sandersn commented Dec 4, 2018

I think this is simple enough to put in 3.2. I'll cherry-pick it and update when it's in.

sandersn added a commit that referenced this pull request Dec 4, 2018
* Infer from arrows from usage.

Previously only function expressions were, and only those with an easily
accessible name. Now any arrow function or function expression will
infer from usage.

* remove isApplicableFunctionForInference

*all* functions are applicable for inference now.
@sandersn
Copy link
Member Author

sandersn commented Dec 4, 2018

All right, it's in 3.2 now.

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

Successfully merging this pull request may close these issues.

2 participants