google / cel-go

Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)
https://cel.dev
Apache License 2.0
2.3k stars 224 forks source link

Minor adjustment to inlining to fix a bad bind #888

Closed TristonianJones closed 10 months ago

TristonianJones commented 10 months ago

Inlining attempted a bind where one was not valid.

Whether or not the inlined type would support field tests was not relevant to whether it could be used in a bind within a presence test. Removed this single condition which triggers failures as well as a test case to reproduce the issue.