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 }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Attributes on async/iterator type parameters are lost by linker #2785
But the T that the user meant to use was the one on the method:
[IteratorStateMachine(typeof(<Methods>d__1<>))]
public IEnumerable<MethodInfo>Methods<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)]T>(){returnnew<Methods>d__1<T>(-2);}
To get rid of the warnings, the linker needs to use the attributes on the original method, instead of the ones on the wrapper type.
Activity