Skip to content

Commit 64d5789

Browse files
committed
internal/core/adt: consider required fields for final values in Equal
This corresponds to an error being generated when exporting a value. Issue #2583 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: I0fe3cf1a7ccb4f6ef94889f592453c7d42ad0131 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1217009 Reviewed-by: Roger Peppe <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 2b7dfbd commit 64d5789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/core/adt/equality.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func equalVertex(ctx *OpContext, x *Vertex, v Value, flags Flag) bool {
7575
return false
7676
}
7777

78-
maxArcType := ArcMember
78+
maxArcType := ArcRequired
7979
if flags&CheckStructural != 0 {
8080
// Do not ignore optional fields
8181
// TODO(required): consider making this unconditional

0 commit comments

Comments
 (0)