lsp/eval: add test to show bad behaviour of aliases
The current evaluation of `a: L={b: _, c: L.b}` is faulty: paths that
start with `a` will not resolve correctly. E.g. `a.b` does not resolve
to the `b` field within the inner struct.
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: I73da6a64ed391172d3e9989a207c62b908231a42
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1231153
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>