// Caused a stack overflow on evalv2.
#inlinetest:exclude skip: compile errors.
-- in.cue --
 let X = {}

[Y="foo"]: 3
a:         Y

c: {}
for x in c {a: E}

Z1=[Z2=string]: Z1 + Z2
-- out/evalalpha --
unreferenced alias or let clause X:
    ./in.cue:1:2
a: reference "Y" not found:
    ./in.cue:4:12
for[].a: reference "E" not found:
    ./in.cue:7:16
