Invalid trim warning suppression in BindConverter #57016
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-trimming
Milestone
Is there an existing issue for this?
Describe the bug
ParserDelegateCache.Get
method body suppresses trim analysis warnings with the following justification:aspnetcore/src/Components/Components/src/BindConverter.cs
Lines 1859 to 1867 in 98ee502
This is a lie. At minimum, the following code:
aspnetcore/src/Components/Components/src/BindConverter.cs
Lines 1985 to 1990 in 98ee502
is doing MakeGenericMethod on a method that is annotated. I don't see anything obvious that would ensure this invariant holds:
aspnetcore/src/Components/Components/src/BindConverter.cs
Line 2002 in 98ee502
Trim warning suppressions:
unsafe
. Assume it's a bug unless proven otherwise.Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: