Skip to content

Implemement default interface methods constrained call corner case #111191

Open
@MichalStrehovsky

Description

@MichalStrehovsky

Implement the corner case where interface method implemented on a struct is getting constrained-called and the target of the constrained call is compile-time time ambiguous between a method on the struct and a default-implemented method. CoreCLR throws an NotSupportedException, Mono will box when necessary. Implement whatever is more convenient.

See disabled tests referencing this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions