Skip to content

SA1206 firing incorrectly for required in C# 11 #3527

@stephentoub

Description

@stephentoub

Version:
1.2.0-beta.435

Repro:

internal struct SomeStruct
{
    public required int Prop { get; set; }
}

Expected:
No warnings

Actual:

SA1206: The 'required' modifier should appear before 'public'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions