-
Notifications
You must be signed in to change notification settings - Fork 287
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 Definition closedness bug in API
Open structs or structs with ellipsis should always allow fields, not just regular ones. The question is if this is really the case when we disallow definitions in closed struct by default, but it seems fair enough to allow this until this is the case as it is consistent with CUE's behavior. Fixes #2320 Issue #543 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: I25a42948f569e81ddacc74c7467c98a287861bea Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552331 Unity-Result: CUEcueckoo <cueckoo@cuelang.org> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
- Loading branch information
Showing
2 changed files
with
25 additions
and
17 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