Skip to content

API Compat: the reference assembly is allowed to have more overrides than the implementation #2570

@terrajobst

Description

@terrajobst

Suppos a reference assembly includes an overide that the implementation doesn't have. Then, API Compat creates an error like this:

MembersMustExist : Member 'System.IO.FileStream.Read(System.Span<System.Byte>)' does not exist in the implementation but it does exist in the contract.

However, IL was designed to handle cases like this. In fact, we may want to always have all the overrides to bad base calls in C# should we add an overide later.

See this thread for more context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructure-librariesArea maintained by .NET libraries team: APICompat, AsmDiff, GenAPI, GenFacades, PkgProj, etchelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions