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

Overture missing an order/equality warning #723

Closed
nickbattle opened this issue May 20, 2020 · 1 comment
Closed

Overture missing an order/equality warning #723

nickbattle opened this issue May 20, 2020 · 1 comment
Labels
bug Incorrect behaviour of the tool language Issues in parser, TC, interpreter, POG or CG Mergable A fix is available on a branch to merge for release
Milestone

Comments

@nickbattle
Copy link
Contributor

VDMJ produces a warning if you define types with order or equality clauses and then combine them in a union that has its own order or equality clause. For example:

types
	T1 = nat
	ord a < b == a < b;

	T2 = nat;

	U = T1 | T2        <--- Warning 5019: Order of union member T1 will be overridden
	ord a < b == b < a;

These are missing from Overture 2.7.4.

@nickbattle nickbattle added bug Incorrect behaviour of the tool language Issues in parser, TC, interpreter, POG or CG labels May 20, 2020
@nickbattle nickbattle added the Mergable A fix is available on a branch to merge for release label May 20, 2020
@nickbattle
Copy link
Contributor Author

Now fixed in ncb/development.

@idhugoid idhugoid added this to the v3.0.0 milestone Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behaviour of the tool language Issues in parser, TC, interpreter, POG or CG Mergable A fix is available on a branch to merge for release
Projects
None yet
Development

No branches or pull requests

2 participants