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

Anonymous tuples with a seq of range based sets causes bad C generation #24714

Open
beef331 opened this issue Feb 22, 2025 · 0 comments
Open

Comments

@beef331
Copy link
Collaborator

beef331 commented Feb 22, 2025

Description

The following causes a C-gen issue

discard (newSeq[set['0'..'9']](),)
discard (newSeq[set['a'..'z']](),)

Nim Version

2.2.2

Current Output

error: incompatible types when assigning to type ‘tySequence__HdagB9bZ0KEacHYQ2JTjcLQ’ from type ‘tySequence__Qy9bGPFS89afT64NVFs6BA9cw’
  138 |         T2_.Field0 = colontmpD__2;
      |                      ^~~~~~~~~~~~

Expected Output


Known Workarounds

No response

Additional Information

No response

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

No branches or pull requests

1 participant