Skip to content

Report async code fix diagnostic on function name whenever it exists #26801

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

Closed
uniqueiniquity opened this issue Aug 30, 2018 · 0 comments · Fixed by #27109
Closed

Report async code fix diagnostic on function name whenever it exists #26801

uniqueiniquity opened this issue Aug 30, 2018 · 0 comments · Fixed by #27109
Assignees

Comments

@uniqueiniquity
Copy link
Contributor

uniqueiniquity commented Aug 30, 2018

TypeScript Version: typescript@next

Search Terms:
async, code fix

Code

const foo = function y() { return fetch('https://typescriptlang.org').then(result => { console.log(result) }); };

Expected behavior:
Suggestion diagnostic on y.
Actual behavior:
Suggestion diagnostic on foo.

Related Issues:
#26374

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 a pull request may close this issue.

1 participant