docgen: fixes #9432 [backport]

This commit is contained in:
Araq 2018-10-31 00:19:24 +01:00
commit 48f73aaa1c
6 changed files with 152 additions and 1 deletions

View file

@ -22,3 +22,9 @@ macro bar*(): untyped =
result = newStmtList()
var aVariable*: array[1,int]
aEnum()
bEnum()
# bug #9432
proc isValid*[T](x: T): bool = x.len > 0