...
1// Sometimes an arc should not "Finalize" itself. See Issue #2171 in eval.go.
2-- in.cue --
3package x
4
5do: {
6 hello: {
7 }
8}
9
10for k, v in do {do: (k): v}
11-- out/compile --
12--- in.cue
13{
14 do: {
15 hello: {}
16 }
17 for k, v in 〈0;do〉 {
18 do: {
19 〈2;k〉: 〈2;v〉
20 }
21 }
22}
23-- out/eval/stats --
24Leaks: 0
25Freed: 3
26Reused: 0
27Allocs: 3
28Retain: 0
29
30Unifications: 3
31Conjuncts: 5
32Disjuncts: 3
33-- out/eval --
34(struct){
35 do: (struct){
36 hello: (struct){
37 }
38 }
39}
View as plain text