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

[grammar] Async arrowhead might be missing type annotation #191

Open
takikawa opened this issue Sep 14, 2023 · 0 comments
Open

[grammar] Async arrowhead might be missing type annotation #191

takikawa opened this issue Sep 14, 2023 · 0 comments

Comments

@takikawa
Copy link
Contributor

takikawa commented Sep 14, 2023

The draft grammar has the following productions:

CoverCallExpressionAndAsyncArrowHead :
   MemberExpression TypeParameters_opt Arguments TypeAnnotation_opt

AsyncArrowHead :
  async [no LineTerminator here] TypeParameters_opt ArrowFormalParameters

The second production might be missing a TypeAnnotation_opt at the end, since the return type might need to be specified for an async arrow. Also the first production is supposed to cover the second, but right now the type annotation doesn't seem to be covering anything in AsyncArrowHead.

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

No branches or pull requests

1 participant