We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It´s great that MiniZinc supports enums, and they work really fine in most of the cases, for example as follows:
enum E = { A, B, C }; array[1..3] of set of E: e; e = [ {A}, {A,B}, {} ]; solve satisfy;
However, if I specify the first element of an array of sets of enum to be empty, I get an unexpected error:
enum E = { A, B, C }; array[1..3] of set of E: e; e = [ {}, {A,B}, {} ]; solve satisfy;
MiniZinc: type error: initialisation value for 'e' has invalid type-inst: expected 'array[int] of set of E', actual 'array[int] of set of int'
The text was updated successfully, but these errors were encountered:
Fix enum type inference for array literals with empty sets as their f…
c421015
…irst arguments. Fixes #180.
4c38fa2
No branches or pull requests
It´s great that MiniZinc supports enums, and they work really fine in most of the cases, for example as follows:
However, if I specify the first element of an array of sets of enum to be empty, I get an unexpected error:
The text was updated successfully, but these errors were encountered: