-
Notifications
You must be signed in to change notification settings - Fork 217
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
typecheck/failure/duplicateFields.dhall spec test fails in parsing step instead in type checking one #772
Comments
@jneira this is a known bug of the Haskell implementation. I think we mentioned it in some issue or PR, but I cannot find it at the moment, so I guess we can use this issue to track it. This is correctly a typecheck failure, as the standards forbids it at typecheck time. You can see more details on this in dhall-lang/dhall-lang#278 (I also considered forbidding this at parse time, but it's not possible to specify such thing in the grammar) |
Yeah, this is a non-standard behavior of the Haskell implementation. Fixing this properly will require changing the representation of |
That’s what I did in |
Here is an up-to-date list of the problematic test cases:
|
Hi, the spec tes case https://github.com/dhall-lang/dhall-lang/blob/master/tests/typecheck/failure/duplicateFields.dhall fails when parsing instead when typechecking:
As parsing is needed to make the type check, there is no way to test it properly.
If the standard forbids the parsing of duplicated fields the test should be moved to
tests/parser/failure
(and test code should be changed), otherwise the haskell impl should be changed to allow parse the expression.AFAIU the grammar spec doesn't disallow duplicate fields in records.
The text was updated successfully, but these errors were encountered: