-
Notifications
You must be signed in to change notification settings - Fork 428
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
Parse M.[] #2043
Parse M.[] #2043
Conversation
fixes reasonml#2028
What happens in a jsx context? |
@@ -608,3 +608,6 @@ let foo = | |||
module Y: Y_t with type t = a, | |||
module Z: Z_t with type t = a, | |||
) => X.a; | |||
|
|||
/* https://github.com/facebook/reason/issues/2028 */ | |||
M.([]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need the parens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. I'll investigate if there are conflicts.
Thanks for the review. I added test cases for JSX context + tweaked the printer to print without parens. |
Thanks for the quick PR! Looks fine by me. |
Thanks |
fixes #2028