fixes #6489
This commit is contained in:
parent
95a5373d07
commit
8a601669ef
6 changed files with 20 additions and 6 deletions
|
|
@ -522,8 +522,8 @@ proc replaceTypeVarsTAux(cl: var TReplTypeVars, t: PType): PType =
|
|||
if r2.kind in {tyPtr, tyRef}:
|
||||
r = skipTypes(r2, {tyPtr, tyRef})
|
||||
result.sons[i] = r
|
||||
#if result.kind != tyArray or i != 0:
|
||||
# propagateToOwner(result, r)
|
||||
if result.kind != tyArray or i != 0:
|
||||
propagateToOwner(result, r)
|
||||
# bug #4677: Do not instantiate effect lists
|
||||
result.n = replaceTypeVarsN(cl, result.n, ord(result.kind==tyProc))
|
||||
case result.kind
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue