tests/spec/unit/regression/test_bug_483.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | check_against: [] |
| 4 | expected: |
| 5 | - !FlatZinc test_bug_483.fzn |
| 6 | extra_files: [] |
| 7 | markers: [] |
| 8 | name: '' |
| 9 | options: |
| 10 | all_solutions: false |
| 11 | solvers: |
| 12 | - gecode |
| 13 | type: compile |
| 14 | ***/ |
| 15 | |
| 16 | array[int] of var bool: x = let { |
| 17 | array[int] of var bool: y = [true,false] |
| 18 | } in y[min(index_set(y))..max(index_set(y))-1]; |
| 19 | % } in y[1..2]; % same but somewhat different error message |