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