Debian Codegraph @

tests/spec/unit/regression/coerce_set_to_array_2.mzn

raw
1 /***
2 !Test
3 expected: !Error
4 ***/
5
6 % Should give an error because sets of floats cannot be coerced to arrays.
7 % Used to work due to set of float being incorrectly made a subtype of array of float.
8
9 function bool: foo(array [int] of float: x) = true;
10 bool: x :: add_to_output = foo({1.0});