conditional expression of type 'type' is illegal
The conditional expression evaluated to an illegal type.