Skip to content

Consider improving SA1316 behavior for element names in tuple expressions #36

Description

@bjornhellander

If SA1316 triggers in a tuple type, then the diagnostic is on the element name and a code fix is offered.

If it triggers in a tuple expression, then the diagnostic is instead on the value and no code fix is offered. If the element name has been explicitly stated, then I guess it could instead behave as for tuple types. That would feel more natural to me.

Image

Tested using 1.1.0-alpha.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions