-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue: add a regression test for a closedness bug fixed in evalv3
In the added test case, the struct with the "name" field is closed as it is referenced via the parent definition, so trying to insert new fields via unification should fail. The new evaluator fixes this case, as can be seen in the eval diff. It seems the old evaluator wasn't tracking closedness properly here. Closes #1830. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I9f96baa377f2f5cd5ab66491f1e3ca112cd33ab9 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195009 Reviewed-by: Paul Jolly <paul@myitcv.io> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information
Showing
1 changed file
with
181 additions
and
24 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