-
Notifications
You must be signed in to change notification settings - Fork 13
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
X
a referencecauses the following error in Alloy:
The generated Alloy code is incorrect and irregular:
The
A
andB
should not have@ref
s, so only forC
is the code generated correctly.Currently, the only way to fix it is by adding
.ref
as followsHowever, the instance produced is incorrect!
Changing the
xs
toresults 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: