$ git rev-parse HEAD
a31dd01670b9e63728a1e1c62148a9770c1d6382
$ go build -o cue.elf cuelang.org/go/cmd/cue
$ ./cue.elf version
cue version (devel) linux/amd64
Does this issue reproduce with the latest release?
Yes, tested against 0.3.2.
What did you do?
cue eval
-- bar.cue --
package repro
a: []
-- foo.cue --
package repro
{for a in a {}}
What did you expect to see?
$ cue eval
a: []
And this does indeed happen if I do one of the following:
change the field comprehension into for aa in a
combine the content of the two .cue files into a single .cue file
What did you see instead?
$ cue eval
reference "a" set to unknown node in AST; this can result from incorrect API usage or a compiler bug:
./foo.cue:3:11
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
Yes, tested against 0.3.2.
What did you do?
What did you expect to see?
And this does indeed happen if I do one of the following:
for aa in a
What did you see instead?