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

only allow enums to overload enums + extra test #20126

Merged
merged 1 commit into from
Sep 3, 2022

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Aug 1, 2022

When a symbol has both enum and non-enum (e.g. routine) overloads, and the first resolved overload (i.e. last declared) for that symbol is an enum, only consider the enum overloads for that symbol and ignore non-enum overloads. This mirrors behavior without overloadableEnums.

The need for this was discovered in #20076 in some packages and standard library/tests

mirror behavior without overloadableEnums
@Varriount Varriount requested a review from Araq August 26, 2022 20:20
@Varriount Varriount added the Requires Araq To Merge PR should only be merged by Araq label Aug 26, 2022
@metagn
Copy link
Collaborator Author

metagn commented Aug 30, 2022

Updated description to explain what the PR does

metagn added a commit to metagn/Nim that referenced this pull request Sep 3, 2022
@Araq Araq merged commit a6189fb into nim-lang:devel Sep 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2022

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

Hint: mm: orc; threads: on; opt: speed; options: -d:release
163959 lines; 14.402s; 842.191MiB peakmem

metagn added a commit to metagn/Nim that referenced this pull request Sep 3, 2022
Araq pushed a commit that referenced this pull request Sep 5, 2022
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requires Araq To Merge PR should only be merged by Araq
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants