Skip to content

match/case doesn't perform overlapping equality checking #16079

Closed
@jgarvin

Description

Even with --strict this is accepted:

match 3:
    case "hello":
        pass

While this is rejected:

if 3 == "hello":
    pass

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions