-
Notifications
You must be signed in to change notification settings - Fork 294
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: closedness fix related to comprehension
This consists of two fixes: 1. use allows instead of matchPattern to check for fields that are not covered by patterns. 2. updates the arcTypes _after_ calling allows, as allows needs the old values. Fixes #3486 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I85c04f814bf0cb67a2a57dc10205ad2a309cb61f Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202421 Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
Showing
3 changed files
with
91 additions
and
13 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
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