-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
ERROR: syntax: invalid named tuple element
misleading message
#30030
Comments
Thanks for catching this. There is indeed a glaring bug here, but after fixing it there won't be an error, since |
I didn't catch that, but of course you're right. I had some non-syntax bugs in my code because @nt(a=3) produced a tuple, but (a=3) on v0.7 did not. I think it's perfectly okay if there is no error for my original code. |
The following code produces the following syntax error.
The fix is to add a trailing
,
(comma) to the named tuple of one element, which is not quite what the error message says.(I ran into this when porting code away from using
NamedTuples.jl
on juia v0.6)The text was updated successfully, but these errors were encountered: