Skip to content

Conversation

@ringabout
Copy link
Member

@ringabout ringabout commented Jan 2, 2023

fixes #21207

addInterfaceOverloadableSymAt doesn't report redefinition errors. We need to ensure that symbols with the same style shouldn't appear in the enum definition. It turns out that we can reuse the check for pure enum.

@ringabout ringabout marked this pull request as draft January 2, 2023 14:13
@ringabout ringabout marked this pull request as ready for review January 2, 2023 15:58
@ringabout ringabout changed the title fixes #21207; reports redefinition in the enums fixes #21207; reports redefinition error in the definition of enums Jan 2, 2023
@Araq
Copy link
Member

Araq commented Jan 3, 2023

@narimiran please backport

@Araq Araq merged commit 81b7f91 into devel Jan 3, 2023
@Araq Araq deleted the pr_enums branch January 3, 2023 07:15
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

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

Hint: mm: orc; opt: speed; options: -d:release
165740 lines; 9.933s; 611.527MiB peakmem

ringabout added a commit that referenced this pull request Jan 3, 2023
…21217)

* fixes #21207;  reports redefinition in the enums

* add a test
@ringabout
Copy link
Member Author

ringabout commented Jan 3, 2023

I'm backporting it here #21219

ringabout added a commit that referenced this pull request Jan 3, 2023
…21219)

* bump csource_v2 to include fix for linking parameter maximum length (#21216)

> If accepted, I believe it should be used in csources_v2 and also backport 2.0

ref #21186

* fixes #21207; reports redefinition error in the definition of enums (#21217)

* fixes #21207;  reports redefinition in the enums

* add a test
survivorm pushed a commit to survivorm/Nim that referenced this pull request Feb 28, 2023
… enums (nim-lang#21217)

* fixes nim-lang#21207;  reports redefinition in the enums

* add a test
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
… enums (nim-lang#21217)

* fixes nim-lang#21207;  reports redefinition in the enums

* add a test
bung87 pushed a commit to bung87/Nim that referenced this pull request Jul 29, 2023
… enums (nim-lang#21217)

* fixes nim-lang#21207;  reports redefinition in the enums

* add a test
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.

Keys in enum are case-sensitive on OSX and case-insensitive on linux

3 participants