Skip to content

Self-referencing collections shouldn't have to have "using IOG;" #104

@AArnott

Description

@AArnott

Given an immutable type with a self-referencing collection member:

    [GenerateImmutable]
    public partial class X
    {
        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private readonly ImmutableArray<X> children;
    }

This produces a compile error in the generated code unless the above source file includes using ImmutableObjectGraph; at the top, since the generated code doesn't fully-qualify some types.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions