Skip to content

Fix arrow function body parsing precedence #546

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 1 commit into from
Mar 18, 2019
Merged

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Mar 18, 2019

This PR corrects parsing of e.g. arr.reduce<i32>((a, b) => a + b, 0), which previously parsed the inner arrow function body as a + b, 0, resulting in just one argument to .reduce<i32>(...) etc.

fixes #543

@dcodeIO dcodeIO requested a review from MaxGraey March 18, 2019 08:35
@dcodeIO dcodeIO merged commit 858cca5 into master Mar 18, 2019
@dcodeIO dcodeIO deleted the fix-arrowprecedence branch March 29, 2019 10:30
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.

ERROR AS200: Conversion from type 'Array' to 'i32' requires an explicit cast
2 participants