Describe the bug
Attempting to constant fold the following expression: [(x - 1 > 3) ? (x - 1) : 5].exists(x, x - 1 > 3)
Produces the following error:
Optimize() generated an invalid AST: ERROR: <input>:-1:0: constant-folding evaluation failed: no such attribute(s): x
Expected behavior
Though there's nothing to fold, it shouldn't cause an error
Describe the bug
Attempting to constant fold the following expression:
[(x - 1 > 3) ? (x - 1) : 5].exists(x, x - 1 > 3)Produces the following error:
Optimize() generated an invalid AST: ERROR: <input>:-1:0: constant-folding evaluation failed: no such attribute(s): xExpected behavior
Though there's nothing to fold, it shouldn't cause an error