When for example adding a number? value with a number, it is GetTypeOfBinaryExpression that will return null, thus reporting Operator "+" cannot be used on types 'number?' and 'number'.
The error should be more specific and say that one of the operands is potentially nil.
However we need to consider how this will interact with user-defined operators and whether their parameters are allowed to be nil.
When for example adding a
number?value with anumber, it isGetTypeOfBinaryExpressionthat will returnnull, thus reportingOperator "+" cannot be used on types 'number?' and 'number'.The error should be more specific and say that one of the operands is potentially nil.
However we need to consider how this will interact with user-defined operators and whether their parameters are allowed to be nil.