cuelang.org/go@v0.13.0/cue/testdata/fulleval/017_resolutions_in_struct_comprehension_keys.txtar (about) 1 #name: resolutions in struct comprehension keys 2 #evalFull 3 -- in.cue -- 4 a: {for _, b in ["c"] {"\(b+".")": "a"}} 5 -- out/def -- 6 a: { 7 "c.": "a" 8 } 9 -- out/export -- 10 a: { 11 "c.": "a" 12 } 13 -- out/yaml -- 14 a: 15 c.: a 16 -- out/json -- 17 {"a":{"c.":"a"}} 18 -- out/legacy-debug -- 19 <0>{a: <1>{"c.": "a"}} 20 -- out/compile -- 21 --- in.cue 22 { 23 a: { 24 for _, b in [ 25 "c", 26 ] { 27 "\((ă1;bă + "."))": "a" 28 } 29 } 30 } 31 -- out/eval/stats -- 32 Leaks: 2 33 Freed: 3 34 Reused: 0 35 Allocs: 5 36 Retain: 3 37 38 Unifications: 5 39 Conjuncts: 5 40 Disjuncts: 4 41 -- out/eval -- 42 (struct){ 43 a: (struct){ 44 "c.": (string){ "a" } 45 } 46 }