Describe the bug
I am not quite sure whether this is a bug or not. I was reading the source to track down a different problem and came across this, which seems odd to me.
https://github.com/google/cel-go/blob/5d18e93d204801cbe02158a0ddb3a3abce29e4ed/interpreter/prune.go#L418-L433
Shouldn't it check compre.IterVar2 and return a p.NewComprehensionTwoVar(...) if it's not empty?
Similarly, shouldn't there be a check for a two variable comprehension in the following bit as well?
https://github.com/google/cel-go/blob/5d18e93d204801cbe02158a0ddb3a3abce29e4ed/interpreter/prune.go#L284-L287
Describe the bug
I am not quite sure whether this is a bug or not. I was reading the source to track down a different problem and came across this, which seems odd to me.
https://github.com/google/cel-go/blob/5d18e93d204801cbe02158a0ddb3a3abce29e4ed/interpreter/prune.go#L418-L433
Shouldn't it check
compre.IterVar2and return ap.NewComprehensionTwoVar(...)if it's not empty?Similarly, shouldn't there be a check for a two variable comprehension in the following bit as well?
https://github.com/google/cel-go/blob/5d18e93d204801cbe02158a0ddb3a3abce29e4ed/interpreter/prune.go#L284-L287