#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/stats --
Leaks:  1
Freed:  8
Reused: 3
Allocs: 6
Retain: 1

Unifications: 5
Conjuncts:    12
Disjuncts:    9
-- out/eval --
(struct){
  y: ((int|struct)){ |(*(int){ 1 }, (struct){
      a: (int){ 2 }
    }) }
  a: (int){ 2 }
}
