Debian Codegraph @

tests/spec/unit/regression/github_892.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 expected: !Result
5 solution: !Solution
6 xb: 3
7 x:
8 a: 1
9 b: 3
10 c: 2
11 ***/
12
13 % Previously par evaluation of a record merge would only work through eval_par,
14 % and not through eval_array_lit, leading to the values being concatenated as
15 % in normal arrays
16
17 int: xb :: output = foo();
18 function int: foo() = x.b; % Par evaluation of the record x is done through eval_array_lit and not eval_par
19 any: x :: output = (a: 1, c: 2) ++ (b: 3); % If this VarDecl is placed earlier, it gets evaluated with eval_par