mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
c97f58be98
* ast/compile: check arity in undefined function stage Before, the "undefined function" check stage in the compiler (and query compiler) only asserted that the function was known. Now, we'll also check that the number of arguments _could be_ valid. If it really is valid will be determined by the type checker at a later stage. However, asserting the arity early allows us to give more on-the-spot error messages. Fixes #4054. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>