tests/spec/unit/types/github_647.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | check_against: [] |
| 4 | expected: |
| 5 | - !Result |
| 6 | solution: !Solution |
| 7 | b: 1 |
| 8 | status: SATISFIED |
| 9 | extra_files: [] |
| 10 | markers: [] |
| 11 | name: '' |
| 12 | options: |
| 13 | all_solutions: false |
| 14 | solvers: |
| 15 | - gecode |
| 16 | type: solve |
| 17 | ***/ |
| 18 | |
| 19 | enum Enum = { Foo }; |
| 20 | array[Enum] of int: arr1 = [0]; |
| 21 | array[int] of record(1..1: x): arr2 = [(x: 1)]; |
| 22 | var 1..1: b; |
| 23 | constraint arr2[b].x = 1; |