forked from open-policy-agent/opa
-
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.
Fix with value rewriting for call terms
If a call term was used as a with value, e.g., "p with input as f(1)" the type checker would panic because the call was not expanded as expected. These changes update the rewrite term expr stage to rewrite with values like other AST nodes such as calls and composites. Also, add an extra test case for with value rewriting to cover open-policy-agent#772. Fixes open-policy-agent#916 Signed-off-by: Torin Sandall <torinsandall@gmail.com>
- Loading branch information
Showing
2 changed files
with
10 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