Skip to content

Commit bd829ec

Browse files
committed
update
1 parent 4c0ef9d commit bd829ec

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mdoc/Mono.Documentation/MDocUpdater.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4166,7 +4166,10 @@ private void MakeTypeParameters (FrameworkTypeEntry entry, XmlElement root, ILis
41664166
xElement.RemoveAttribute(Consts.FrameworkAlternate);
41674167
xElement.SetAttribute(Consts.FrameworkAlternate, fxaValue);
41684168
MakeParamsAttributes(existing.Element, AttributeFormatter.PreProcessCustomAttributes(t.CustomAttributes), entry, member);
4169-
MakeTypeParameterConstraints(root, e, xElement, t);
4169+
if (((attrs & (GenericParameterAttributes)0x0020) != 0) && !xElement.SelectNodes("Constraints/ParameterAttribute[@Value='AllowsRefStruct']").Cast<XmlElement>().Any())
4170+
{
4171+
MakeTypeParameterConstraints(root, e, xElement, t);
4172+
}
41704173
}
41714174
else
41724175
{

0 commit comments

Comments
 (0)