chaowlert/PrimaryConstructor

Same class name in different namespaces

Closed this issue · 0 comments

The generation doesn't work correctly when there are two same name classes but in different namespaces.
A simple snippet to reproduce the bug:

namespace NS1
{
    [PrimaryConstructor]
    public partial class Foo
    {
        public Int32 _bar;
        public static Foo foo = new Foo(1);
    }
}

namespace NS2
{
    [PrimaryConstructor]
    public partial class Foo
    {
        public Int32 _bar;
        public static Foo foo = new Foo(1);
    }
}