Skip to content

SA1000 doesn't handle checked operator definitions #3478

@tannergooding

Description

@tannergooding

C# 11 is introducing user-defined checked operators (public static T operator checked +(T value);) and currently triggers SA1000 saying no space is expected after checked.

The analyzer should be updated to allow a space when checked is used in this context, seeing as it differs from the normal checked(expr) syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions