Skip to content

ArgumentException when using constructors #373

@Darkar25

Description

@Darkar25

Generator crashes and therefore produces no files when members with similar names are included and one of them is used in a constructor.
Here's a MRE:

[MemoryPackable]
public partial class A {
    [MemoryPackInclude]
    private int _b;
    public int B => _b;
    public A(int b) => _b = b;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions