Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix with value rewriting for call terms #923

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

tsandall
Copy link
Member

@tsandall tsandall commented Aug 31, 2018

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 #772 .

Fixes #916

Signed-off-by: Torin Sandall torinsandall@gmail.com

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>
@tsandall tsandall merged commit 44cbaf5 into open-policy-agent:master Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant