-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
'input' and 'data' should be reserved identifiers #2600
Comments
We currently allow policies to override built-in functions as well as the
In this case, I'm assuming the import cc @timothyhinrichs WDYT? |
Thanks for the reminder @tsandall that supporting overriding for functions is necessary to ensure backwards compatibility of policies. I could see prohibiting overriding |
Fixes: open-policy-agent#2600 Signed-off-by: Johan Fylling <[email protected]>
Fixes: #2600 Signed-off-by: Johan Fylling <[email protected]>
Expected Behavior
If I define a function whose name is
data
, the compiler should probably emit an error that directly specifies that's not going to work.Actual Behavior
I ended up with this compiler error:
Steps to Reproduce the Problem
Additional Info
I'm using OPA v0.19.2 as a library.
The text was updated successfully, but these errors were encountered: