forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ast: Disallow shadowing of called functions in comprehension heads
If a local var in a comprehension overrides a function call in the comprehension head, it will never be possible to make that call. Fixes: open-policy-agent#4762 Signed-off-by: Johan Fylling <[email protected]>
- Loading branch information
1 parent
4ea50cb
commit 26c23c0
Showing
2 changed files
with
123 additions
and
0 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