Extend constraints to support ternary expressions (#2836)

4 files changed