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

@ -8,3 +8,19 @@ type
proc someType*(): SomeType =
## constructor.
SomeType(2)
# bug #9235
template aEnum*(): untyped =
type
A* {.inject.} = enum ## The enum A.
aA
template bEnum*(): untyped =
type
B* {.inject.} = enum ## The enum B.
bB
func someFunc*() =
## My someFunc.
discard