Skip to content

error CS0111: Type 'SomeType' already defines a member called 'Equals' with the same parameter types #864

@jlaanstra

Description

@jlaanstra

Describe the bug
CsWinRT generates duplicate Equals methods if the underlying type in the WInMD already has an Equals() method with itself as the type parameter

To Reproduce
Create a C++WinRT component with a type that has an Equals method with itself as the equator. For example:

    runtimeclass SomeType
    {
        SomeType();

        Boolean Equals(SomeType someType);
    };

Pass the WinMD to CsWinRT.

Expected behavior
No error.

Version Info
CsWinRT 1.2.6

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions