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

Fix: Position of default argument to be at the call site, not definition #2826

Merged
merged 10 commits into from
Oct 12, 2022

Conversation

MikaelMayer
Copy link
Member

@MikaelMayer MikaelMayer commented Sep 30, 2022

This PR fixes #2801
The problem arose from the automatically generated expression FunctionName(DefaultArgumentValue), which made the RangeToken of that expression believe it was starting at the default argument value and ending at the last ) fo the function call.

Needs to update release notes.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

keyboardDrummer
keyboardDrummer previously approved these changes Oct 4, 2022
@MikaelMayer MikaelMayer enabled auto-merge (squash) October 12, 2022 15:21
@MikaelMayer MikaelMayer merged commit 11b1052 into master Oct 12, 2022
@MikaelMayer MikaelMayer deleted the fix-position-of-default-argument branch October 12, 2022 16:07
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.

Default parameter violating precondition has incorrect location
2 participants