Skip to content

NRT metadata is not used for element type nullability #31416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ajcvickers opened this issue Aug 6, 2023 · 0 comments · Fixed by #31468
Closed

NRT metadata is not used for element type nullability #31416

ajcvickers opened this issue Aug 6, 2023 · 0 comments · Fixed by #31468

Comments

@ajcvickers
Copy link
Contributor

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!;
}
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants