You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a function is defined with a call in the argument list, the compiler panics. The compiler should be rewriting these args like it does with other terms that require evaluation (e.g., refs, comprehensions, etc.)
Rather than causing a panic calls in function declaration args will
now just raise a parse error.
In the future we could potentially support them but we would need to
sort out some additional details/ambiguity around behavior.
Its unclear that any users need this behavior so for now we'll just
correct the panic.
Fixes: open-policy-agent#2081
Signed-off-by: Patrick East <east.patrick@gmail.com>
Rather than causing a panic calls in function declaration args will
now just raise a parse error.
In the future we could potentially support them but we would need to
sort out some additional details/ambiguity around behavior.
Its unclear that any users need this behavior so for now we'll just
correct the panic.
Fixes: #2081
Signed-off-by: Patrick East <east.patrick@gmail.com>
If a function is defined with a call in the argument list, the compiler panics. The compiler should be rewriting these args like it does with other terms that require evaluation (e.g., refs, comprehensions, etc.)
The text was updated successfully, but these errors were encountered: