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

Ensure obsolete diagnostics about required constructor or Add method is suppressible. #72426

Merged

Conversation

AlekseyTs
Copy link
Contributor

No description provided.

@AlekseyTs AlekseyTs requested review from 333fred and RikkiGibson March 6, 2024 21:52
@AlekseyTs AlekseyTs requested a review from a team as a code owner March 6, 2024 21:52
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Mar 6, 2024
{
static void Main()
{
#line 100
Copy link
Contributor

Choose a reason for hiding this comment

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

Is use of #line relevant to the test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is use of #line relevant to the test?

I used it intentionally, it is reflected in the line numbers for diagnostics in the base line


class MyCollection : IEnumerable<long>
{
[System.Obsolete()]
Copy link
Member

@333fred 333fred Mar 6, 2024

Choose a reason for hiding this comment

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

Is it worth it to add variations for Experimental as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it worth adding variations for Experimental as well?

I do not think so, they are supposed to be handled uniformly. The only difference is the attribute name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Context for suppression comes from the binder

@AlekseyTs AlekseyTs merged commit 512187f into dotnet:features/ParamsCollections Mar 8, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Feature - ParamsCollections untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants