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

"CreateWithIdentity" not generated on base class when derived class is in separate file #60

Closed
jviau opened this issue Dec 1, 2015 · 1 comment

Comments

@jviau
Copy link

jviau commented Dec 1, 2015

Steps to reproduce:

A.cs
    [GenerateImmutable]
    public partial class A
    {
        readonly string field1;
    }
B.cs
    [GenerateImmutable]
    public partial class B : A
    {
        readonly string field2;
    }

This will produce an error where A.generated.cs does not have CreateWithIdentity, yet B.generated.cs will still try to call it in ToA(), causing an error.

Putting both class A and class B in the same file correctly generates the CreateWithIdentity method.

@AArnott
Copy link
Owner

AArnott commented Dec 1, 2015

Spreading type families across source files is not yet supported in general.
Closing as a child of #61, which I filed to track the overall feature request.

@AArnott AArnott closed this as completed Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants