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 compiler crash when a field is used in a default argument. #1940

Merged
merged 1 commit into from
Jun 3, 2017

Conversation

jemc
Copy link
Member

@jemc jemc commented Jun 3, 2017

This PR fixes a compiler crash when a field is used in a default argument.

This was broken as a side effect the placement of a check
introduced in #1858, and was fixed by just changing the order
of the checks so that we don't expect to be in a method body frame
if we are in a default argument frame.

This was broken as a side effect the placement of a check
introduced in #1858, and was fixed by just changing the order
of the checks so that we don't expect to be in a method body frame
if we are in a default argument frame.
@jemc jemc added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Jun 3, 2017
@SeanTAllen SeanTAllen merged commit f42d727 into master Jun 3, 2017
@SeanTAllen SeanTAllen deleted the fix/compiler-crash-field-in-default-argument branch June 3, 2017 11:10
ponylang-main added a commit that referenced this pull request Jun 3, 2017
@SeanTAllen
Copy link
Member

Nice work @jemc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants