internal/core/adt: allow lookup across disjunction boundary
If we are evaluating a disjunct, allow indexing
into the disjunct. Theoretically this is not correct.
However, doing so we approximate carrying over
unresolved tasks across the disjunction boundary
so that they can be resolved once a single disjunction
has been chosen. This is something we SHOULD do,
but is rather hard. Doing this instead seems like a
good approximation.
Issue #3967
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Ib39640f2e978a08eefbf02dd6bb97e9202010de3
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1217087
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>