Fix: get expected return when isConstantExpression() is called on a typed constant