This commit is contained in:
Araq 2017-11-23 02:32:51 +01:00
commit 8a601669ef
6 changed files with 20 additions and 6 deletions

View file

@ -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