diff options
author | Tlakaelel Axayakatl Ceja <tlakaelel.ceja@microsoft.com> | 2021-08-23 10:36:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 10:36:06 +0300 |
commit | 062c230b2674ea187da17d94742531e196e1e172 (patch) | |
tree | 7114880d4ff6f3106ce83f2871c143e344a66fd0 /eng/common | |
parent | 25ea51325080b3950950f0703da7903e922f9b1d (diff) |
Add static constructor behavior for RUC on type (#2207)
Add new error code for cases in which the static constructor is
annotated with RUC
Add IL2116 to error codes
Move static constructor verification in MarkField before pushing a new
stack to print warnings in the method caller instead of fields
Don't treat static constructors annotated with RUC as dangerous
Add test for several static constructor calls
Warn on field instead of warning on .cctor
* Field should warn no matter the DependencyKind except
DynamicallyAccessedMemberOnType
* Add test for Access to field via reflection, dynamic dependency and
using fields on attributes
Co-authored-by: vitek-karas <vitek.karas@microsoft.com>
Diffstat (limited to 'eng/common')
0 files changed, 0 insertions, 0 deletions