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.
[feature/damAnalyzer] Warning code differ between the linker and analyzer #2583
Linker Warning ...Program.cs(21,5): Trim analysis warning IL2077: Mono.Linker.Tests.Cases.Warnings.WarningSuppression.SuppressWarningsInCompilerGeneratedCode.SuppressInIteratorBody.<TestMethodParameterWithRequirements>d__1.MoveNext(): 'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'Mono.Linker.Tests.Cases.Warnings.WarningSuppression.DataFlowTypeExtensions.RequiresNonPublicMethods(Type)'. The field 'System.Type Mono.Linker.Tests.Cases.Warnings.WarningSuppression.SuppressWarningsInCompilerGeneratedCode/SuppressInIteratorBody/<TestMethodParameterWithRequirements>d__1::unknownType' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
Message:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "1"
Diagnostics:
// (23,5): warning IL2067: 'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'Mono.Linker.Tests.Cases.Warnings.WarningSuppression.DataFlowTypeExtensions.RequiresNonPublicMethods(Type)'. The parameter 'unknownType' of method 'Mono.Linker.Tests.Cases.Warnings.WarningSuppression.SuppressWarningsInCompilerGeneratedCode.SuppressInIteratorBody.TestMethodParameterWithRequirements(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
Activity
tlakollo commentedon Feb 16, 2022
closed via #2584