cmd/cue: add testscript for #2648
Showing a simplified version of the original reproducer,
and then including two variants with aliases and lets,
because a naive solution would be to avoid wrapping some file values
in structs which would cause duplicate alias or let names.
We use a testscript rather than a test in internal/core/export/testdata
because these tests require multiple files to properly reproduce.
For #2648.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ie89cea7a4b8fe30dbc5fb9b1ddcef01ffbe863e2
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1233925
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Matthew Sackman <matthew@cue.works>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>