Skip to content

Implicitly resolve to callables when resolving call expressions #1320

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

Merged
merged 1 commit into from
Jun 9, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Jun 9, 2020

This PR fixes #1289 by resolving variable types to their respective function targets (if there is one, otherwise errors) in resolveCallExpression. Works because all the compiler is interested in on CallExpression is a callable, not the element, and the old behavior can be achieved by unwrapping and resolving callExpression.expression instead if that becomes necessary (currently isn't).

  • I've read the contributing guidelines

@dcodeIO dcodeIO merged commit 42f6c85 into master Jun 9, 2020
@dcodeIO dcodeIO deleted the issue-1289 branch June 11, 2020 17:17
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.

Issue with immediately executed functions
1 participant