Skip to content

10$: Warn on if("x"||"y"), case "x"||"y":, etc. #953

@strager

Description

@strager
if ("x" || "y") { // expect: diagnostic
}

switch (s) {
  case "x" || "y": // expect: diagnostic
    break;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    for hireGet paid for working on this task: https://quick-lint-js.com/hiring.htmlgood first issueGood for newcomers and C++ beginners

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions