-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Delay reporting of pattern-based using diagnostics #73850
Conversation
6074c5d
to
abbf35a
Compare
src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenAwaitUsingTests.cs
Outdated
Show resolved
Hide resolved
Done with review pass (commit 1) |
Sorry, looks like CodeFlow broke on second commit :-/ |
@jcouv It looks like there are legitimate test failures. |
Consider including tests for scenarios from #72819. The adjusted test case is ref struct specific. |
Done with review pass (commit 4) |
@dotnet/roslyn-compiler for second review. Thanks |
@jcouv It looks like there is a legitimate test failure |
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.
LGTM (commit 6)
In the reported scenario, we try to bind pattern-based first, but incorrectly report the diagnostics from that binding despite successfully binding via interface as fallback.
Regression from #72598
Fixes #73691
Fixes #72819