...
1-- in.cue --
2 if #E["x"] != _|_ {
3 #E: y: true
4}
5if #E["y"] != _|_ {
6 z: true
7}
8#E: [_]: bool
9#E: x: true
10-- out/eval/stats --
11Leaks: 0
12Freed: 5
13Reused: 1
14Allocs: 4
15Retain: 2
16
17Unifications: 5
18Conjuncts: 7
19Disjuncts: 5
20-- out/eval --
21(struct){
22 #E: (#struct){
23 y: (bool){ true }
24 x: (bool){ true }
25 }
26 z: (bool){ true }
27}
28-- out/compile --
29--- in.cue
30{
31 if (ć0;#Eć["x"] != _|_(explicit error (_|_ literal) in source)) {
32 #E: {
33 y: true
34 }
35 }
36 if (ć0;#Eć["y"] != _|_(explicit error (_|_ literal) in source)) {
37 z: true
38 }
39 #E: {
40 [_]: bool
41 }
42 #E: {
43 x: true
44 }
45}
View as plain text