-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compiler fails on NamedTuple keys containing dashes #14784
Comments
I think this is scoped to |
Playing a bit with the "try it online" thingy, it seems this was working as of 1.4.1, and stopped working with 1.5.0. |
inexperience with the language |
Prob caused by #12011. |
No worries, more so meant from a language perspective. I submitted a PR to fix this, but for now can just use the literal syntax if you're needing one with a hyphen. |
That was quick! I went back and looked at why I used the constructor, I think I was unsure whether I would be getting Is the literal guaranteed to always result in a NamedTuple? |
Yes, an "object" using |
Thanks! |
Bug Report
Trying to use a string literal as NamedTuple key fails if the literal contains a dash
-
.Compiler info:
Example code
Compiler output:
The text was updated successfully, but these errors were encountered: