Skip to content

Commit

Permalink
Ignore union cases for properties
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp committed Aug 31, 2018
1 parent d692e9b commit e26a22e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ private void AppendProperties(TypeDefinition type, StringBuilder buf)

if (IsRecord(type) || IsDiscriminatedUnion(type))
{
props = props.Where(p => !GetFSharpFlags(p.CustomAttributes).Any(ca => ca == SourceConstructFlags.Field))
props = props.Where(p => !GetFSharpFlags(p.CustomAttributes).Any(ca => ca == SourceConstructFlags.Field || ca == SourceConstructFlags.UnionCase))
.OrderBy(p => p.FullName);
}

Expand Down

0 comments on commit e26a22e

Please sign in to comment.