docgen: fixes #9432 [backport]
This commit is contained in:
parent
8f28be0dd8
commit
48f73aaa1c
6 changed files with 152 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue