Debian Codegraph @

tests/spec/unit/regression/github_966.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Result
5 solution: !Solution
6 x: 1
7 ***/
8
9 % Test for GitHub issue #966 where type-specialise was not setting the type
10 % of the specialised parameter type-inst correctly.
11
12 function $T: foo(array [int] of $T: x) = x[1];
13 enum Foo = {A};
14 any: x :: output = foo([A: 1]);