Skip to content

Linker doesn't use correct TypeDefinition to determine if a method is needed as an override of an interface method #98255

@jtschuster

Description

@jtschuster

See #97487 (comment) for more details.

There could be a method on a base type that provides an implementation for an interface implementation. Using that type as the "Implementing type" is incorrect, but will lead to correct results because the method will be kept if the "Implementing type" is marked as instantiated, and because all base types are marked as instantiated if the derived type is.

Metadata

Metadata

Assignees

Labels

area-Tools-ILLink.NET linker development as well as trimming analyzers

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions