Skip to content

Report use-site diagnostics in BindWithExpression#45664

Merged
AlekseyTs merged 1 commit intodotnet:masterfrom
AlekseyTs:BindWithExpression
Jul 7, 2020
Merged

Report use-site diagnostics in BindWithExpression#45664
AlekseyTs merged 1 commit intodotnet:masterfrom
AlekseyTs:BindWithExpression

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

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

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

@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