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
ILLink analyzer doesn't see operator method annotations #119110
The ILLink Roslyn analyzer doesn't properly handle operator methods. It doesn't see annotated operator method parameters, and instead treats operator method returns as unknown values:
Repro:
varresult=newOperatorType()-newOperatorType();result.RequiresPublicMethods();// Should report IL2072 about mismatch. Instead reports IL2062 (unknown value passed to RequiresPublicMethods).privatesealedclassOperatorType:TestSystemTypeBase{[return:DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields)]publicstaticTypeoperator-(OperatorTypeleft,OperatorTyperight)=>...}
Annotated operator parameters are similar. This is a very niche scenario since it requires defining operators for annotatable types (System.Type for example).
Activity
dotnet-policy-service commentedon Aug 26, 2025
Tagging subscribers to this area: @dotnet/illink
See info in area-owners.md if you want to be subscribed.
Add trim analyzer support for C# 14 extensions (#119017)
Add trim analyzer support for C# 14 extensions (dotnet#119017)
[release/10.0] Add trim analyzer support for C# 14 extensions (#119195)
Add issue links and reasons to ExpectedWarning attributes in illink t…