Skip to content

Improve error message for using ^ on boolean values #712

@sophiajt

Description

@sophiajt

From #587 -

We should give a better, more helpful error message when the ^ operator is used on boolean values.

From the comment:

Given this decision, may I suggest improving the error message to state something akin to the following?

"error TS0000: The ^ operator is not allowed for boolean types. Consider using !== instead."

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions