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
A warning should be reported using foreach with a nullable value.
foreach
class C { static void F(object[]? args) { foreach (var o in args) // warn { } } }
The text was updated successfully, but these errors were encountered:
Also, we need to check the nullability of values returned by yield:
yield
using System.Collections.Generic; public class C { public IEnumerable<(string, string)> M() { yield return (null, null); // expect warning } }
Example
Sorry, something went wrong.
yield is tracked in #23701.
cston
No branches or pull requests
A warning should be reported using
foreach
with a nullable value.The text was updated successfully, but these errors were encountered: