Debian Codegraph @

tools/trim/testdata/63.txtar

raw
1 Variant of 62 where the disjunction amounts to the same thing, but
2 uses an implicit unification instead of explicit. Both 62 and 63
3 should behave the same: i.e. trim makes no changes.
4
5 Note that v2 gets this wrong.
6
7 -- a.cue --
8 #a: x: int
9 #b: ({x: 5} | {x: 7})
10 #b: #a
11 out: #b & {x: 5}
12 -- out/trim-v3 --
13 == a.cue
14 #a: x: int
15 #b: ({x: 5} | {x: 7})
16 #b: #a
17 out: #b & {x: 5}
18 -- diff/-out/trim-v3<==>+out/trim --
19 diff old new
20 --- old
21 +++ new
22 @@ -2,4 +2,4 @@
23 #a: x: int
24 #b: ({x: 5} | {x: 7})
25 #b: #a
26 -out: #b & {}
27 +out: #b & {x: 5}
28 -- out/trim-v3-noshare --
29 == a.cue
30 #a: x: int
31 #b: ({x: 5} | {x: 7})
32 #b: #a
33 out: #b & {x: 5}
34 -- diff/-out/trim-v3-noshare<==>+out/trim --
35 diff old new
36 --- old
37 +++ new
38 @@ -2,4 +2,4 @@
39 #a: x: int
40 #b: ({x: 5} | {x: 7})
41 #b: #a
42 -out: #b & {}
43 +out: #b & {x: 5}
44 -- out/trim --
45 == a.cue
46 #a: x: int
47 #b: ({x: 5} | {x: 7})
48 #b: #a
49 out: #b & {}