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

Reify function references used as addressof operands correctly #1857

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

Praetonus
Copy link
Member

Previously, a function reference used as the operand of addressof was only reified in expr_qualify. Since this function is only called when there is at least one type argument, a function referenced with no type arguments wouldn't be checked. This change fixes the issue by reifying the function in expr_addressof if the function reference wasn't already reified.

Previously, a function reference used as the operand of `addressof` was
only reified in `expr_qualify`. Since this function is only called when
there is at least one type argument, a function referenced with no type
arguments wouldn't be checked. This change fixes the issue by reifying
the function in `expr_addressof` if the function reference wasn't
already reified.
@jemc jemc added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Apr 21, 2017
@jemc jemc merged commit 98e92b3 into ponylang:master Apr 21, 2017
ponylang-main added a commit that referenced this pull request Apr 21, 2017
@Praetonus Praetonus deleted the addressof-typeargs branch July 8, 2017 03:55
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