potential fix for semgeneric formal params (#17494)
marked locations where analysis of return formal param is done prior to args. This might fix some subtle bugs.
This commit is contained in:
parent
1590d14575
commit
7366a3da37
3 changed files with 8 additions and 2 deletions
|
|
@ -107,6 +107,7 @@ proc computeDeps(cache: IdentCache; n: PNode, declares, uses: var IntSet; topLev
|
|||
for i in 0..<n.safeLen: deps(n[i])
|
||||
of nkMixinStmt, nkBindStmt: discard
|
||||
else:
|
||||
# XXX: for callables, this technically adds the return type dep before args
|
||||
for i in 0..<n.safeLen: deps(n[i])
|
||||
|
||||
proc hasIncludes(n:PNode): bool =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue