Skip to content

Failed to generate source when types have the same name #10

@ufcpp

Description

@ufcpp

The following code fails to compile.

namespace A1
{
    [Cloneable.Cloneable]
    public partial class C
    {
        public int X { get; set; }
    }
}

namespace A2
{
    [Cloneable.Cloneable]
    public partial class C
    {
        public int X { get; set; }
    }
}

https://github.com/mostmand/Cloneable/blob/master/Cloneable/CloneableGenerator.cs#L101

hintPath is generated from classSymbol.Name and hintPath must be unique.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions