-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/adt: fix disjunction error issue
V3 used CombineErrors to combine errors from the various disjuncts into a single Bottom value. CombineErrors takes the code of the worst error. However, for disjunctions we actually want the code of the least worst error. This change makes V3 use the same error creation logic as V2, using some wrapper code. As a result, V3 now also produces the "empty disjunction" messages which were previously missing. Note that now we have the "empty disjunction" messages, we can see that the reported count of failed disjunctions is somewhat off in some tests. diff/todos are added where appropriate. Issue #3600 Fixes #3581 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I0ca92c190976d51fffddac6010e11a88505e876b Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1206284 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
15 changed files
with
288 additions
and
719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.