// Issue #946
-- in.cue --
package repro

a: []
-- out.cue --
package repro

x: {for a in a {}}
y: {{{for a in a {}}}}
-- out/compile --
--- in.cue
{
  a: []
}
--- out.cue
{
  x: {
    for _, a in 〈1;a〉 {}
  }
  y: {
    {
      {
        for _, a in 〈3;a〉 {}
      }
    }
  }
}
-- out/eval/stats --
Leaks:  0
Freed:  4
Reused: 2
Allocs: 2
Retain: 0

Unifications: 4
Conjuncts:    7
Disjuncts:    4
-- out/eval --
(struct){
  a: (#list){
  }
  x: (struct){
  }
  y: (struct){
  }
}
