Debian Codegraph @

tests/spec/unit/regression/github_902a.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Error
5 type: TypeError
6 ***/
7
8 list of tuple(
9 int, array[1..1] of opt 1..
10 ): A = [
11 (2, [1]),
12 (1, [<>]),
13 ];
14
15 list of tuple(
16 int, array[1..1] of 0.. % <- Opt not allowed by type
17 ): B = A ++ [
18 (1, [0])
19 ];
20
21 output join("\n", [
22 "A:\(A)",
23 "B:\(B)",
24 ]);