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

with keyword does not behave like a stack when applied to input which leads to surprising results #802

Closed
vrnmthr opened this issue Jun 27, 2018 · 0 comments
Assignees

Comments

@vrnmthr
Copy link
Contributor

vrnmthr commented Jun 27, 2018

package test

default a = false
a {
    input.a == input.b
}

default b = false
b {
    a with input.a as 5
}

Results in the incorrect evaluation:

> data.test.b with input.a as 5 with input.b as 5
false
@tsandall tsandall changed the title incremental with statements not merging with caller input with keyword does not behave like a stack which leads to surprising results Mar 19, 2019
@tsandall tsandall changed the title with keyword does not behave like a stack which leads to surprising results with keyword does not behave like a stack when applied to input which leads to surprising results Mar 20, 2019
@tsandall tsandall self-assigned this Apr 12, 2019
tsandall added a commit to tsandall/opa that referenced this issue Apr 17, 2019
Fixes open-policy-agent#802

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants