tests/spec/unit/regression/github_644_d.mzn
raw| 1 | /*** |
| 2 | !Test |
| 3 | check_against: [] |
| 4 | expected: |
| 5 | - !Result |
| 6 | solution: !Solution |
| 7 | value: null |
| 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 | array[1..1] of 1..1: arr = [1]; |
| 20 | opt 1..1: index = <>; |
| 21 | function opt int: foo(opt int: x) = let { int: y = 3 } in x; |
| 22 | opt 1..1: value ::output = arr[foo(index)]; |