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
Version Used: dc6f316
Steps to Reproduce:
#nullable enable using System.Diagnostics.CodeAnalysis; public static class Program { public static void M1(string? s) { AssertNotNull(s); s.ToString(); } public static void M2(string? s) { C c = s; s.ToString(); // 1 } public static void AssertNotNull([AllowNull, NotNull] string s) { throw null!; } public class C { public static implicit operator C([AllowNull, NotNull] string s) { throw null!; } } }
SharpLab
Expected Behavior: No diagnostics
Actual Behavior: Diagnostic indicated by // 1.
// 1
The text was updated successfully, but these errors were encountered:
RikkiGibson
Successfully merging a pull request may close this issue.
Version Used: dc6f316
Steps to Reproduce:
SharpLab
Expected Behavior: No diagnostics
Actual Behavior: Diagnostic indicated by
// 1
.The text was updated successfully, but these errors were encountered: