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
ILLink tracks assignments and reads of the int local, and before #110105 this was enough for the analysis to determine that array element 0 satisfies PublicMethods.
The dependency update changed the iterator codegen, introducing a dispose method that assigns null to the array. This interferes with the analysis and causes this to report a warning:
Trim analysis warning IL2062: Mono.Linker.Tests.Cases.DataFlow.CompilerGeneratedCodeAccessedViaReflection.IteratorStateMachines.<IteratorWithIntegerDataflow>d__3.MoveNext(): Value passed to parameter 'type' of method 'Mono.Linker.Tests.Cases.Expectations.Helpers.DataFlowTypeExtensions.RequiresPublicMethods(Type)' can not be statically determined and may not meet 'DynamicallyAccessedMembersAttribute' requirements.
The text was updated successfully, but these errors were encountered:
For code like this:
ILLink tracks assignments and reads of the int local, and before #110105 this was enough for the analysis to determine that array element 0 satisfies PublicMethods.
The dependency update changed the iterator codegen, introducing a dispose method that assigns
null
to the array. This interferes with the analysis and causes this to report a warning:The text was updated successfully, but these errors were encountered: