Skip to content

Commit 4ae75f8

Browse files
committed
internal/core/adt: fix closedness bug with patterns
When a pattern constraint is matched to a field, this field is added to the closeContext of the corresponding pattern. However, this does not mean that the field is actually present. This distinction is relevant when later down the line, two pattern constraints are intersected, invalidating a field. In order to track this, we mark an arc as "matched", as opposed to explicit. Issue #3601 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: If283780babdcdd03723ae84d3b2af2f6f1fbed48 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205363 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Matthew Sackman <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 8aa5769 commit 4ae75f8

File tree

3 files changed

+404
-460
lines changed

3 files changed

+404
-460
lines changed

0 commit comments

Comments
 (0)