-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzers
Milestone
Description
interface IBaseWithDefault
{
void DefaultMethod (Type type);
}
interface IDerivedWithDefault : IBaseWithDefault
{
[ExpectedWarning ("IL2092")]
[ExpectedWarning ("IL2092", ProducedBy = ProducedBy.Analyzer)] // Analyzer produces the warning again
void IBaseWithDefault.DefaultMethod ([DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicMethods)] Type type) { }
}
class ImplDerivedWithDefault : IDerivedWithDefault
{
}
This is because the analyzer uses symbol action (so called for every symbol). In this case it's called for ImplDerivedWithDefault
and then for IDerivedWithDefault
and both return the DefaultMethod
override pair (the exact same pair) from their call to GetMemberInterfaceImplementationPairs
.
Metadata
Metadata
Assignees
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzers
Type
Projects
Status
No status