From 20e3a39d6c9bee419f133f87920724d3d45e93d9 Mon Sep 17 00:00:00 2001 From: nc-x Date: Sun, 5 May 2019 02:05:00 +0530 Subject: Fix `nim doc` ignoring doc comments with implicit returns and implicit conversions (#11173) --- compiler/docgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 014f757db..bad57fa18 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -254,7 +254,7 @@ proc genRecCommentAux(d: PDoc, n: PNode): Rope = result = genComment(d, n).rope if result == nil: if n.kind in {nkStmtList, nkStmtListExpr, nkTypeDef, nkConstDef, - nkObjectTy, nkRefTy, nkPtrTy, nkAsgn, nkFastAsgn}: + nkObjectTy, nkRefTy, nkPtrTy, nkAsgn, nkFastAsgn, nkHiddenStdConv}: # notin {nkEmpty..nkNilLit, nkEnumTy, nkTupleTy}: for i in countup(0, len(n)-1): result = genRecCommentAux(d, n.sons[i]) -- cgit 1.4.1-2-gfad0