Skip to content

Proposal: Signal invalid syntax in switch statement condition #1977

Open
@SetTrend

Description

@SetTrend

The switch statement condition syntax seems obscure from time to time. See PowerShell issues 21299 and 10911.

Hence, I suggest do add a few checks to test switch statement conditions for invalid syntax. (I.e., syntax that will never be evaluated, or that will always evaluate to $false etc.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions