You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RUC should suppress warnings about generics from type #108523
RUC on type silences warnings for code in members of the type, including generics warnings for methods.
But it doesn't silence warnings about generics on the type itself:
classRequireAll<[DAM(DAMT.All)]T>{}[RUC("C<T>")]classC<T>:RequireAll<T>{}// IL2091 'T' generic argument does not satisfy 'DynamicallyAccessedMemberTypes.All'
I believe RUC on type should silence this warning. I can't think of a way to do something unsafe with typeof(C<>) that wouldn't cause warnings elsewhere.
The field cases should be fixed by #118708 since ILLink will no longer produce generic warnings on fields (instead they will show up at the field accesses).
Activity
sbomer commentedon Dec 1, 2022
Similar for fields:
I think these cases should not warn.
dotnet-policy-service commentedon Oct 3, 2024
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Oct 3, 2024
Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Oct 3, 2024
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Oct 3, 2024
Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas
See info in area-owners.md if you want to be subscribed.
sbomer commentedon Aug 13, 2025
The field cases should be fixed by #118708 since ILLink will no longer produce generic warnings on fields (instead they will show up at the field accesses).
Suppress interface generic dataflow warnings under RUC (dotnet#131911)