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

Parser requires extra parens on first-class module destructuring #1715

Closed
rickyvetter opened this issue Dec 19, 2017 · 0 comments
Closed

Parser requires extra parens on first-class module destructuring #1715

rickyvetter opened this issue Dec 19, 2017 · 0 comments

Comments

@rickyvetter
Copy link
Contributor

I think this should parse - there may be some conflicts that I'm not aware of and if that's the case I'd love to learn more!

let foo = (module Foo, baz) => Foo.bar(baz);

This version currently parses with no issues.

let foo = ((module Foo), baz) => Foo.bar(baz);

This is closely related to #1605 but the paren wrapping wasn't explicitly called out and I think they can be fixed independently. If it makes sense to merge them then feel free to close this out!

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