# DO NOT EDIT; generated by go run testdata/gen.go | |
# | |
#name: resolutions in struct comprehension keys | |
#evalFull | |
-- in.cue -- | |
a: {for _, b in ["c"] {"\(b+".")": "a"}} | |
-- out/def -- | |
a: { | |
"c.": "a" | |
} | |
-- out/export -- | |
a: { | |
"c.": "a" | |
} | |
-- out/yaml -- | |
a: | |
c.: a | |
-- out/json -- | |
{"a":{"c.":"a"}} | |
-- out/legacy-debug -- | |
<0>{a: <1>{"c.": "a"}} | |
-- out/compile -- | |
--- in.cue | |
{ | |
a: { | |
for _, b in [ | |
"c", | |
] { | |
"\((ă1;bă + "."))": "a" | |
} | |
} | |
} | |
-- out/eval -- | |
(struct){ | |
a: (struct){ | |
"c.": (string){ "a" } | |
} | |
} |