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

adapt semOpAux to opt-in symchoices #23750

Merged
merged 2 commits into from
Jun 25, 2024
Merged

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Jun 21, 2024

fixes #23749, refs #22716

semIndirectOp is used here because of the callback expressions, in this case db.getProc(...), and semIndirectOp calls semOpAux to type its arguments before overloading starts. Hence it can opt in to symchoices since overloading will resolve them.

@Araq Araq merged commit 948fc29 into nim-lang:devel Jun 25, 2024
19 checks passed
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 948fc29

Hint: mm: orc; opt: speed; options: -d:release
179018 lines; 8.749s; 664.691MiB peakmem

narimiran pushed a commit that referenced this pull request Aug 14, 2024
fixes #23749, refs #22716

`semIndirectOp` is used here because of the callback expressions, in
this case `db.getProc(...)`, and `semIndirectOp` calls `semOpAux` to
type its arguments before overloading starts. Hence it can opt in to
symchoices since overloading will resolve them.

(cherry picked from commit 948fc29)
narimiran pushed a commit that referenced this pull request Aug 14, 2024
fixes #23749, refs #22716

`semIndirectOp` is used here because of the callback expressions, in
this case `db.getProc(...)`, and `semIndirectOp` calls `semOpAux` to
type its arguments before overloading starts. Hence it can opt in to
symchoices since overloading will resolve them.

(cherry picked from commit 948fc29)
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.

Regression: ambiguous identifier
2 participants