cuelang.org/go@v0.10.1/cue/testdata/fulleval/054_issue312.txtar (about) 1 #name: issue312 2 #evalFull 3 -- in.cue -- 4 y: *1 | {a: 2} 5 for x in [1] {y} 6 -- out/def -- 7 y: *1 | { 8 a: 2 9 } 10 a: 2 11 -- out/export -- 12 y: 1 13 a: 2 14 -- out/yaml -- 15 y: 1 16 a: 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 -- 34 Leaks: 1 35 Freed: 8 36 Reused: 3 37 Allocs: 6 38 Retain: 1 39 40 Unifications: 5 41 Conjuncts: 12 42 Disjuncts: 9 43 -- out/eval -- 44 (struct){ 45 y: ((int|struct)){ |(*(int){ 1 }, (struct){ 46 a: (int){ 2 } 47 }) } 48 a: (int){ 2 } 49 }