Debian Codegraph @

tests/spec/unit/regression/github_858.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Result
5 solution: !Solution
6 _output_item: "[1][1][1]\n"
7 ***/
8
9 array[int, int] of int: foos = [| 1, 0 |];
10
11 output [
12 show([ r[1] | t=foos, i in index_set_1of2(t), r=t[i, ..] ]), % error
13 show([ r[1] | i in index_set_1of2(foos), t=foos, r=t[i, ..] ]), % error
14 show([ r[1] | i in 1..1, t=foos, r=t[i, ..] ]), % error
15 "\n",
16 ];