Skip to content
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

Constraints inside list, map and union is not checked #491

Open
rishav-karanjit opened this issue Jul 25, 2024 · 2 comments
Open

Constraints inside list, map and union is not checked #491

rishav-karanjit opened this issue Jul 25, 2024 · 2 comments
Labels
soundness Bugs that cause the generated code to compute the wrong value or crash

Comments

@rishav-karanjit
Copy link
Member

When we generate code for .NET and Java, it does not generate code to check for constraints inside list, map and union (Only .NET for union). Because of this, this PR is failing. Example of Failure:

SimpleConstraintsImplTest.TestConstraints: PASSED
WrappedSimpleConstraintsTest.TestConstraints: FAILED
        test/WrappedSimpleConstraintsTest.dfy(389,4): expectation violation
[Program halted] <stdin>(1,0): Test failures occurred: see above.
@seebees
Copy link
Contributor

seebees commented Jul 26, 2024

#485 is an example of tests that need to pass for this to work

@alex-chew
Copy link
Contributor

Note that the implementation for Rust (#582) will also be affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
soundness Bugs that cause the generated code to compute the wrong value or crash
Projects
None yet
Development

No branches or pull requests

4 participants