dotnet / linker

387 stars 126 forks source link

Add tests for ldtoken analysis and fixes a small bug for a field #3173

Closed vitek-karas closed 1 year ago

vitek-karas commented 1 year ago

LdToken acts basically as a reflection access and so it needs to warn about the returned member if that has annotations on it.

This adds tests for https://github.com/dotnet/linker/issues/3172 which is not fixed by this change.