We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Nix throws a parse error if the idents in a pattern are duplicates. rnix-parser does not throw an error. Seems to be defined here.
rnix-parser
{a, b, a}: a + b
Throw a parse error, with the position of the first occurrence of the duplicated identifier.
The text was updated successfully, but these errors were encountered:
Mark duplicated arguments in argument-patterns as syntax error
850e358
To remain consistent with `nix-instantiate --parser`, expressions like { a, a }: a should be marked as invalid. Closes #45
Ma27
Successfully merging a pull request may close this issue.
Describe the bug
Nix throws a parse error if the idents in a pattern are duplicates.
rnix-parser
does not throw an error. Seems to be defined here.Code Snippet to reproduce
Expected behavior
Throw a parse error, with the position of the first occurrence of the duplicated identifier.
The text was updated successfully, but these errors were encountered: