...
1#name: issue312
2#evalFull
3-- in.cue --
4y: *1 | {a: 2}
5for x in [1] {y}
6-- out/def --
7y: *1 | {
8 a: 2
9}
10a: 2
11-- out/export --
12y: 1
13a: 2
14-- out/yaml --
15y: 1
16a: 2
17-- out/json --
18{"y":1,"a":2}
19-- out/legacy-debug --
20<0>{y: 1, a: 2}
21-- out/compile --
22--- in.cue
23{
24 y: (*1|{
25 a: 2
26 })
27 for _, x in [
28 1,
29 ] {
30 ć2;yć
31 }
32}
33-- out/eval/stats --
34Leaks: 1
35Freed: 8
36Reused: 3
37Allocs: 6
38Retain: 1
39
40Unifications: 5
41Conjuncts: 12
42Disjuncts: 9
43-- out/eval --
44(struct){
45 y: ((int|struct)){ |(*(int){ 1 }, (struct){
46 a: (int){ 2 }
47 }) }
48 a: (int){ 2 }
49}
View as plain text