You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an expression contains a match error because one or more values cannot be inferred and the cause is due to an earlier type error, the compiler should not report the match error.
We already suppress these kinds of match errors for ref errors.
For example:
OPA 0.5.7-dev (commit 69c0d823, built at 2017-08-30T23:12:19Z)
Run 'help' to see a list of commands.
> _ = [true | 1 = "foo"]
2 errors occurred:
1:1: rego_type_error: match error
left : ???
right : ???
1:13: rego_type_error: match error
left : number
right : string
The text was updated successfully, but these errors were encountered:
These changes modify the type checker to run on closures contained in
the expression before the containing expression. This way the type
checker can suppress less specific/actionable match errors in the same
way it does for ref errors.
Fixesopen-policy-agent#438
These changes modify the type checker to run on closures contained in
the expression before the containing expression. This way the type
checker can suppress less specific/actionable match errors in the same
way it does for ref errors.
Fixes#438
If an expression contains a match error because one or more values cannot be inferred and the cause is due to an earlier type error, the compiler should not report the match error.
We already suppress these kinds of match errors for ref errors.
For example:
The text was updated successfully, but these errors were encountered: