-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Regression: ambiguous identifier #23749
Comments
metagn
added a commit
to metagn/Nim
that referenced
this issue
Jun 21, 2024
narimiran
pushed a commit
that referenced
this issue
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 issue
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
Description
This is a minimized, self-contained example of a code that works with Nim 2.0.6 and Nim 1.6.20, but it fails with
Nim devel
:git bisect
shows commit5f9038a5d
, i.e. PR #22716 as a first failing commit. (ping @metagn)Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2024-06-20
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: 646bd99
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: