blob: 52698421253580ded92cf8bc3a586b67ad257f1f [file] [log] [blame]
#name: issue312
#evalFull
-- in.cue --
y: *1 | {a: 2}
for x in [1] {y}
-- out/def --
y: *1 | {
a: 2
}
a: 2
-- out/export --
y: 1
a: 2
-- out/yaml --
y: 1
a: 2
-- out/json --
{"y":1,"a":2}
-- out/legacy-debug --
<0>{y: 1, a: 2}
-- out/compile --
--- in.cue
{
y: (*1|{
a: 2
})
for _, x in [
1,
] {
2;y
}
}
-- out/eval --
(struct){
y: ((int|struct)){ |(*(int){ 1 }, (struct){
a: (int){ 2 }
}) }
a: (int){ 2 }
}