Skip to content

NRT metadata is not used for element type nullability #31416

@ajcvickers

Description

@ajcvickers

For example, in the following code, the element type is detected as nullable:

#nullable enable

public class Foo
{
    public int Id { get; set; }
    public List<string> Bars { get; set; } = null!;
}

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions