lsp/eval: add test showing bad behaviour
{d: _} & {e: d}
Here, the path `d` is resolving to the field `d`, but only when this
occurs at the package level. E.g.
s: {{d: _} & {e: d}}
doesn't exhibit the same bad behaviour.
This points to resolution of fields at the package-level being faulty.
Issue #4284
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: Ie4cb8351ba2b4eadede8d88d3078730e14260871
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1232478
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>