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

[Call-by-name] Handle implicitly cases better #21072

Closed
sureshjoshi opened this issue Jun 17, 2024 · 0 comments · Fixed by #21089
Closed

[Call-by-name] Handle implicitly cases better #21072

sureshjoshi opened this issue Jun 17, 2024 · 0 comments · Fixed by #21089
Assignees
Labels

Comments

@sureshjoshi
Copy link
Member

There are two cases that could probably be handled automatically, if we grab the AST of the called-by-name function:

  1. Extraneous implicitly calls - in these cases, where the number of parameters matches the number of arguments the called function expects - we can skip the trailing implicitly entirely.
  2. Implicit conversion - if the passed in type isn't the exact one the called function expects, it should be inside the implicitly

Example 1: 23cdef5
Example 2: d137bd6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant