-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove obsolete TODO referencing resolved issue #26169 #52130
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
Remove obsolete TODO referencing resolved issue #26169 #52130
Conversation
The TODO comment referenced issue #26169 which has been resolved. The issue discussion concluded that: 1. Adding 'sealed' to interface members should be flagged (implemented in PR #27421) 2. Adding 'virtual' to members should only be flagged in strict mode (already correctly implemented) The current implementation is correct and no further expansion is needed. The TODO has been replaced with a clear comment explaining the strict mode behavior. Co-authored-by: krwq <[email protected]>
krwq
left a comment
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.
Looks good to me. As @copilot mentioned this seems to be fixed by https://github.com/dotnet/sdk/pull/27421/files#diff-b7980ad2404d6e4b2524333bc66dba4f5542171e316ad4161bebe4e8bdfd624a
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.
Pull request overview
This PR removes an obsolete TODO comment that referenced issue #26169, which has been resolved. The issue discussed establishing API compatibility rules for adding the virtual keyword to members. The resolution confirmed that adding virtual is only a breaking change in strict mode contexts, which the code already correctly implements.
Key Changes:
- Removed two-line TODO comment referencing resolved issue #26169
- Added single-line clarifying comment explaining the strict mode behavior
...ibility/ApiCompat/Microsoft.DotNet.ApiCompatibility/Rules/CannotAddOrRemoveVirtualKeyword.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
Issue #26169 discussed clarifying API compatibility rules for adding the
virtualkeyword. PR #27421 resolved it by adding a check forsealedon interface members. The discussion concluded that addingvirtualto members is only a breaking change in strict mode contexts, which is already correctly implemented.Changes
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.