-
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
Ensure obsolete diagnostics about required constructor or Add method is suppressible. #72426
Ensure obsolete diagnostics about required constructor or Add method is suppressible. #72426
Conversation
{ | ||
static void Main() | ||
{ | ||
#line 100 |
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.
Is use of #line
relevant to the test?
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.
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()] |
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.
Is it worth it to add variations for Experimental
as well?
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.
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.
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.
Context for suppression comes from the binder
No description provided.