Debian Codegraph @

tests/spec/unit/regression/github_807.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Result
5 solution: !Solution
6 bar: [1]
7 ***/
8
9 % Previously the RHS of assignment generators were not coerced, so the slicing failed
10
11 array[int, int] of int: foos = [| 1, 0 |];
12
13 array[int] of int: bar :: output = [
14 r[1] | i in index_set_1of2(foos), r = foos[i, ..]
15 ];