git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
11 lines
288 B
MiniZinc
11 lines
288 B
MiniZinc
/***
|
|
!Test
|
|
expected: !Error
|
|
***/
|
|
|
|
% Should give an error because sets of floats cannot be coerced to arrays.
|
|
% Used to work due to set of float being incorrectly made a subtype of array of float.
|
|
|
|
function bool: foo(array [int] of float: x) = true;
|
|
bool: x :: add_to_output = foo({1.0});
|