You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using range to slice array created in let expression throws an integer expression error #483
array[int] of var bool: x = let {
array[int] of var bool: y = [true,false]
} in y[min(index_set(y))..max(index_set(y))-1];
% } in y[1..2]; % same but somewhat different error message
% > minizinc --solver gecode bug.mzn
% || MiniZinc: evaluation error:
% || /home/hbierlee/Projects/libminizinc/tests/spec/unit/sat/bugs/8_array_slice_throws_int_exp_error.mzn:2:
% || in variable declaration for 'x'
% || in let expression
% || /home/hbierlee/Projects/libminizinc/tests/spec/unit/sat/bugs/8_array_slice_throws_int_exp_error.mzn:4:
% || in array access
% || in binary '..' operator expression
% || not an integer expression ''..''
% ||
Activity
Add slicing coercion for let body. Fixes #483.