Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested records are generated without partial enclosing types #8

Closed
amis92 opened this issue Apr 8, 2017 · 0 comments
Assignees
Labels
bug
Milestone

Comments

@amis92
Copy link
Owner

@amis92 amis92 commented Apr 8, 2017

Given

// file Outer.cs
namespace Library
{
    class Outer
    {
        [Record]
        partial class Inner
        {
            public string Name { get; }
        }
    }
}

we expect:

// file Outer.Inner.RecordGenerator.cs
namespace Library
{
    class Outer
    {
        [Record]
        partial class Inner
        {
            // record generated ctor and mutators
        }
    }
}

Currently Inner is generated inside Library namespace, resulting in errors.

@amis92 amis92 added the bug label Apr 8, 2017
@amis92 amis92 self-assigned this Apr 8, 2017
@amis92 amis92 added this to the v0.1 milestone Apr 9, 2017
@amis92 amis92 closed this in e9f99c7 Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.