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
setting references with a union #49
Milestone
Comments
|
Another way of getting correct output: desugars correctly to because by forcing dereferencing twice, the only valid type is |
|
However, writing should not cause whereas we clearly want |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following model works as expected:
However, making
Xa referencecauses the following error in Alloy:
The generated Alloy code is incorrect and irregular:
The
AandBshould not have@refs, so only forCis the code generated correctly.Currently, the only way to fix it is by adding
.refas followsHowever, the instance produced is incorrect!
Changing the
xstoresults in the correct instance
I suppose this has something to do with the type system.
The text was updated successfully, but these errors were encountered: