Skip to content

New analyzer: Value type record property should be initialized #43

@ronnygunawan

Description

@ronnygunawan
record Foo {
    public int X { get; init; }
    public int Y { get; init; } = 0;
}

var foo = new Foo(); // RG0020: X should be initialized.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions