-
Notifications
You must be signed in to change notification settings - Fork 164
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
refactor(pipeline): move constant evaluation after typechecking #1678
Conversation
… and struct declarations) after typechecking.
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.
What about evaluating message opcodes and getters' method_id?
Mmmm... good point. I did not consider that. I see that there are several other places in the typechecker where |
…cations.spec` and resolveDescriptors.spec`.
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.
merge conflicts
merge conflicts |
LGTM (modulo one question) Let's also wait for a feedback from @i582 |
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.
Looks good
Issue
Closes #1655.
Moves constant, default constract field and default struct field evaluation after typechecking to ensure that any function called during initialization has already typechecked.
This PR is required for PR #1652.
Checklist