summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornc-x <neelesh.chandola@outlook.com>2019-05-05 02:05:00 +0530
committerAndreas Rumpf <rumpf_a@web.de>2019-05-04 22:35:00 +0200
commit20e3a39d6c9bee419f133f87920724d3d45e93d9 (patch)
treea9371df0815bdb9eaecfa0420c45f7832bf2ea8c
parentd3db189eb42c1c44d8be1a1fc847ed8db428638f (diff)
downloadNim-20e3a39d6c9bee419f133f87920724d3d45e93d9.tar.gz
Fix `nim doc` ignoring doc comments with implicit returns and implicit conversions (#11173)
-rw-r--r--compiler/docgen.nim2
1 files changed, 1 insertions, 1 deletions
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])