Skip to content

Respect variant declaration ordering #169

Description

@OpenByteDev
internal sealed record ProgressHidden;
internal sealed record ProgressCompleted;
internal sealed record ProgressRunning(
    WorkItem? Work = null,
    string? Message = null,
    double? Progress = null
);
[UnionType<ProgressHidden, ProgressRunning, ProgressCompleted>]
internal readonly partial struct ProgressState;

I would expect state.Switch(hidden, running, completed) but its state.Switch(completed, hidden, running)

Metadata

Metadata

Assignees

No one assigned

    Labels

    UnionsGeneratorFor issues relating to the UnionsGenerator

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions