-
-
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
Set construction syntax no longer works for generic parameter #24484
Comments
!nim c type E = enum A
proc foo[T](t: set[T] = {T.A}) =
discard
foo[E]()
proc bar[T](t: set[T] = {T(0)}) =
discard
bar[uint8]() |
🐧 Linux bisect by @ringabout (member)devel 👎 FAILOutput
Filesize stable 👎 FAILOutput
Filesize 2.0.10 👍 OKOutput
Filesize 2.0.0 👍 OKOutput
Filesize 1.6.20 👍 OKOutput
Filesize 1.4.8 👍 OKOutput
Filesize 1.2.18 👍 OKOutput
Filesize 1.0.10 👍 OKOutput
Filesize #a93c5d79b ➡️ 🐛Diagnosticsmetagn introduced a bug at
The bug is in the files:
The bug can be in the commits: (Diagnostics sometimes off-by-one). Stats
🤖 Bug found in |
Description
The following two cases work up to 2.0.12 but fail since 2.2.0:
Nim Version
Tested with choosenim versions 2.0.12, 2.2.0, and devel git hash: 5340005
Current Output
Expected Output
No response
Known Workarounds
A workaround:
Additional Information
No response
The text was updated successfully, but these errors were encountered: