-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in virtual annotation logic for RequiresUnreferencedCode (#10…
…0707) The following virtual methods are correctly annotated and do not warn: ```csharp class Base { virtual void M() {} } [RequiresUnreferencedCode("Derived")] class Derived : Base { override void M() {} } ``` However, if the method also happens to have DynamicallyAccessedMembers annotations, there's a bug in the logic that causes this to produce warnings in illink. This change fixes the bug. Hit this while experimenting with ComponentModel annotations. --------- Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
- Loading branch information
1 parent
c1a4c9c
commit 8508806
Showing
2 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters