We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
package p f := 1 r := f()
1 error occurred: policy.rego:5: rego_type_error: undefined function data.p.f
Which is correct, as f is not a function. Adding a default non-numeric value for f however makes the type checker somehow recognize f as one.
f
package p default f := "" f := 1 r := f()
I encountered this in a policy I reviewed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which is correct, as
f
is not a function. Adding a default non-numeric value forf
however makes the type checker somehow recognizef
as one.I encountered this in a policy I reviewed.
The text was updated successfully, but these errors were encountered: