We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The second warning is redundant and incorrect:
class Program { static void F(string? s) { int n = s.Length; // warning: 's' may be null if (s.Length > 0) // warning: 's' may be null { } } }
(5,17): warning CS8602: Possible dereference of a null reference. (6,13): warning CS8602: Possible dereference of a null reference.
The text was updated successfully, but these errors were encountered:
cc @jcouv
Sorry, something went wrong.
Dupe of #23270
No branches or pull requests
The second warning is redundant and incorrect:
The text was updated successfully, but these errors were encountered: