-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Improve the "not exhaustive" diagnostic in the presence of a when clause. #46143
Conversation
@alrz This is based on your suggestion. |
@dotnet/roslyn-compiler May I please have a couple of reviews of this diagnostic improvement? |
1 similar comment
@dotnet/roslyn-compiler May I please have a couple of reviews of this diagnostic improvement? |
@dotnet/roslyn-compiler May I please have a second review? |
2 similar comments
@dotnet/roslyn-compiler May I please have a second review? |
@dotnet/roslyn-compiler May I please have a second review? |
@@ -22,23 +22,26 @@ internal static class PatternExplainer | |||
/// <param name="nodes">The set of nodes in topological order.</param> | |||
/// <param name="node">The node of interest.</param> | |||
/// <param name="nullPaths">Whether to permit following paths that test for null.</param> | |||
/// <param name="requiresFalseWhenClause">set to true when if the path requires some when clause to evaluate to 'false'</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when if [](start = 62, length = 7)
Typo?
Hello @gafter! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
* upstream/master: (304 commits) Tweak diagnostics to account for records (dotnet#46341) Diagnose precedence inversion in a warning wave (dotnet#46239) Remove PROTOTYPE tag (dotnet#45965) Only run a single pass of NullableWalker per-member (dotnet#46402) Fix crash, and offer "declare as nullable" for tuple fields (dotnet#46437) Simplify contract for RunWithShutdownBlockAsync Fix optprof plugin input check if EditorAdaptersFactoryService gives us a null buffer Cannot assign maybe-null value to TNotNull variable (dotnet#41445) Fix overload resolution to handle binary compat in the face of covariant returns (dotnet#46367) Same failure on Linux Skip some tests on Mac Added search option for inline parameter name hints Spelling tweak docs Improve comment Improve the "not exhaustive" diagnostic in the presence of a when clause. (dotnet#46143) PR feedback Use record keyword to display records (dotnet#46338) remove test that aserts .NET Standard should be prefered over .NET Framework ...
Fixes #45157