Skip to content

Better reporting for potentially nil binary operands #14

Description

@steveRoll-git

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions