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: allow self-referential comprehensions
Analogous to reference cycles, we allow comprehensions to use the struct in which they are defined as source, as long as they do not introduce new fields, which would alter the source on which they iterate. Fixes cuelang#779 Fixes #1934 Fixes #1881 Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: Id349de7738567d86bda3cbb137d5ad84aef5b551 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/544129 Reviewed-by: Roger Peppe <[email protected]> Unity-Result: CUEcueckoo <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information