opa icon indicating copy to clipboard operation
opa copied to clipboard

Generated var shows up in error message for multi-value rule conflict

Open tsandall opened this issue 1 year ago • 0 comments

In this case the error message should not include __local0__ but rather y.

> show
package repl

p.x[y] {
        y := 7
}
> p["foo"] { true }
1 error occurred: 1:1: rego_type_error: multi-value rule data.repl.p conflicts with [data.repl.p.x[__local0__]]

tsandall avatar Sep 29 '23 22:09 tsandall