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

DefineWithMethodsPerProperty = true fails when source doc has no using for ImmutableObjectGraph #108

Open
AArnott opened this issue Oct 11, 2018 · 0 comments
Assignees
Labels

Comments

@AArnott
Copy link
Owner

AArnott commented Oct 11, 2018

When a file wants helper methods:

[GenerateImmutable(DefineWithMethodsPerProperty = true)]
public partial class X
{
    private readonly ImmutableList<int> values;
}

And that file does not have this line:

using ImmutableObjectGraph;

The generated code won't compile because extension method syntax is used that assumes that is present.

Similar to #104

@AArnott AArnott added the bug label Oct 11, 2018
@AArnott AArnott self-assigned this Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant