Skip to content

SA1642 - fails to consider record structs and thinks it is a class #3921

Open
@smaillet

Description

@smaillet

SA1642 is a contentious rule (but important for consistency of docs). Thus, avoiding false positives is a really good thing. Unfortunately, it fails to do that on a record struct. It seems to think that is a "class" and the standard text should include "class" even though it is a struct. (In most other cases I've found it seems to get it right and handles things correctly (A struct gets 'struct' in the standard text and a class gets 'class'). the newish 'record' keyword seems to be throwing things off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions