internal/core/adt: exclude more cases for adding defID
Previously, we only excluded defIDs for conjuncts
if they were not within the same OpID.
We, however, need to exclude the addition
of any OpID
Issue #4000
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I4cc0e36098fc7f6e3c78811a310eb7daff78e2cc
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1219237
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>