Skip to content

Commit e9495ba

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
fix xml doc for overloads (#6246)
1 parent 6122d6a commit e9495ba

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
@@ -650,7 +650,10 @@ module internal SymbolHelpers =
650650
let mutable ToolTipFault = None
651651

652652
let GetXmlCommentForMethInfoItem infoReader m d (minfo: MethInfo) =
653-
GetXmlCommentForItemAux (if minfo.HasDirectXmlComment || minfo.XmlDoc.NonEmpty then Some minfo.XmlDoc else None) infoReader m d
653+
if minfo.HasDirectXmlComment || minfo.XmlDoc.NonEmpty then
654+
GetXmlCommentForItemAux (Some minfo.XmlDoc) infoReader m d
655+
else
656+
mkXmlComment (GetXmlDocSigOfMethInfo infoReader m minfo)
654657

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

0 commit comments

Comments
 (0)