-
Notifications
You must be signed in to change notification settings - Fork 1
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 validators in embeddings
When an embedded validator is added, both evalv2 and evalv3 did not account for the fact that this potentially changes the type of the struct in which they are embedded. This could cause the struct to be marked as type struct before this is actually known. The hasTop field is used as a mechanism to delay the typing of an embedded struct. We use this now for validators to relax the constraints and not have them inadvertently be interpreted as struct types. Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: I04fe39464a866874ad4a70683a7e6e74f13d14cb Dispatch-Trailer: {"type":"trybot","CL":1200328,"patchset":1,"ref":"refs/changes/28/1200328/1","targetBranch":"master"}
- Loading branch information
Showing
3 changed files
with
102 additions
and
157 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