Skip to content
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

Report use-site diagnostics in BindWithExpression #45664

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

AlekseyTs
Copy link
Contributor

No description provided.

@AlekseyTs AlekseyTs requested a review from a team as a code owner July 6, 2020 03:17
@AlekseyTs
Copy link
Contributor Author

@cston, @jcouv , @RikkiGibson, @dotnet/roslyn-compiler Please review

hasErrors = true;
diagnostics.Add(ErrorCode.ERR_NoSingleCloneMethod, syntax.Expression.Location, receiverType);
}

diagnostics.Add(syntax.Expression, useSiteDiagnostics);
Copy link
Member

@cston cston Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test that is affected by the change. #Resolved

Copy link
Contributor Author

@AlekseyTs AlekseyTs Jul 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test that is affected by the change.

I do not believe it is worth spending time looking for the scenario. Code like this should be written mechanically without waiting for something to break. This is the same as passing DiagnosticsBag around.


In reply to: 450415003 [](ancestors = 450415003)

@AlekseyTs
Copy link
Contributor Author

@cston, @jcouv , @RikkiGibson, @dotnet/roslyn-compiler Please review

@AlekseyTs AlekseyTs merged commit 7fcd3b3 into dotnet:master Jul 7, 2020
@ghost ghost added this to the Next milestone Jul 7, 2020
@JoeRobich JoeRobich modified the milestones: Next, 16.8.P1 Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants