Funicular-Switch icon indicating copy to clipboard operation
Funicular-Switch copied to clipboard

Visibility not respected when generating factory methods for UnionType

Open ax0l0tl opened this issue 2 years ago • 0 comments

Reproduce:

static class Outer
{
 [UnionType(CaseOrder = CaseOrder.AsDeclared)]
 public partial record InitResult
 {
   public record Sync_ : InitResult;
   public record OneTimeSync_(string TempRepoFolder) : InitResult;
   public record NoSync_() : InitResult;
 }
}

Partial record type is generated with public visibiltiy but should be internal.

ax0l0tl avatar Jan 29 '24 08:01 ax0l0tl