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 assert on arrow to typeparam in constraint. #1701

Merged
merged 1 commit into from
Mar 16, 2017
Merged

Conversation

jemc
Copy link
Member

@jemc jemc commented Mar 16, 2017

Fixes by moving "in constraint" checks for arrow and tupletype
from the flatten pass to the syntax pass, so that they are guaranteed
to happen before we try to set the cap on the typeparamref.

It's also more appropriate to run them there since they are syntax-level
checks that require no knowledge of name resolution, or anything else
beyond simple syntax frame lookups.

Resolves #1694.

Fixes by moving "in constraint" checks for arrow and tupletype
from the flatten pass to the syntax pass, so that they are guaranteed
to happen before we try to set the cap on the typeparamref.

It's also more appropriate to run them there since they are syntax-level
checks that require no knowledge of name resolution, or anything else
beyond simple syntax frame lookups.

Resolves #1694.
@jemc jemc added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Mar 16, 2017
@sylvanc sylvanc merged commit fa967e1 into master Mar 16, 2017
ponylang-main added a commit that referenced this pull request Mar 16, 2017
@jemc jemc deleted the fix/1694 branch March 16, 2017 22:07
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