Skip to content

Commit 00e2161

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
fix xml doc for overloads (#6246)
1 parent 740a39d commit 00e2161

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fsharp/symbols/SymbolHelpers.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,10 @@ module internal SymbolHelpers =
648648
let mutable ToolTipFault = None
649649

650650
let GetXmlCommentForMethInfoItem infoReader m d (minfo: MethInfo) =
651-
GetXmlCommentForItemAux (if minfo.HasDirectXmlComment || minfo.XmlDoc.NonEmpty then Some minfo.XmlDoc else None) infoReader m d
651+
if minfo.HasDirectXmlComment || minfo.XmlDoc.NonEmpty then
652+
GetXmlCommentForItemAux (Some minfo.XmlDoc) infoReader m d
653+
else
654+
mkXmlComment (GetXmlDocSigOfMethInfo infoReader m minfo)
652655

653656
let FormatTyparMapping denv (prettyTyparInst: TyparInst) =
654657
[ for (tp, ty) in prettyTyparInst ->

0 commit comments

Comments
 (0)