-
-
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
Overloading resolution chooses a generic template instead of a method for an inherited type #17003
Labels
Comments
ghost
added
the
ARC/ORC Memory Management
label
Feb 10, 2021
This comment has been minimized.
This comment has been minimized.
ghost
changed the title
With ARC/ORC the wrong dispose is called when inheritance is involved
Overloading resolution wrongly chooses a generic template instead of a proc
Feb 10, 2021
ghost
changed the title
Overloading resolution wrongly chooses a generic template instead of a proc
Overloading resolution wrongly chooses a generic template instead of a proc for an inherited type
Feb 10, 2021
ghost
changed the title
Overloading resolution wrongly chooses a generic template instead of a proc for an inherited type
Overloading resolution wrongly chooses a generic template instead of a method for an inherited type
Feb 10, 2021
ghost
changed the title
Overloading resolution wrongly chooses a generic template instead of a method for an inherited type
Overloading resolution chooses a generic template instead of a method for an inherited type
Feb 10, 2021
Araq
added a commit
that referenced
this issue
Feb 16, 2021
From the spec: Every arg in args needs to match. There are multiple different categories how an
These matching categories have a priority: An exact match is better than a The compiler is correct. |
Araq
added a commit
that referenced
this issue
Feb 16, 2021
ghost
mentioned this issue
Mar 14, 2021
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code is expected to call the
dispose
method but it calls a template instead.Found in the 4th NiGui example.
It crashes with ARC/ORC because Nim calls ARC's
dispose
from here instead of NiGui'sdispose
defined here (it's exported in the forward declaration at the top of the file).Example
Current Output
Expected Output
The text was updated successfully, but these errors were encountered: