forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ast/parser: generate new wildcards for else (open-policy-agent#5412)
The previous behavior had triggered a check in the formatter for multiple use of wildcard variables: f(_) := true { true } else := false The formatter found `$1`, the `_` argument of f, again in else, and thus changed it into `_1`: f(_1) := true { true } else := false There's no extra meaning to the copied wildcards in `else`; they should not count as second usage. Fixes: open-policy-agent#5347 Signed-off-by: Stephan Renatus <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters