8016702: use of ternary operator in lambda expression gives incorrect results

Constant types erroneously creep in during inference

Reviewed-by: jjg, vromero
2 files changed