-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
internal/core/adt: fix 2052 for eval v3
Now we finalize the source node for a for comprehension explicitly, we no longer need to use "require" to get the initial node. This avoid some eager evaluation that breaks 2052. We also relax the added conditions in CallExpr.evaluate, as it caused a similar issue with eager evaluation with the "if" version of a the reducers for Issue 2052. Issue #2052 (already fixed and closed for v2) Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: I016959f07285ba17b555e54234e49386a84dc71f Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1206327 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Showing
3 changed files
with
161 additions
and
321 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