parent
5d1608c976
commit
3f3e0fa303
2 changed files with 40 additions and 2 deletions
|
|
@ -344,7 +344,11 @@ proc handleGenericInvocation(cl: var TReplTypeVars, t: PType): PType =
|
|||
x = lookupTypeVar(cl, x)
|
||||
if x != nil:
|
||||
if header == t: header = instCopyType(cl, t)
|
||||
header[i] = x
|
||||
header[i] =
|
||||
if x.kind == tyGenericInst:
|
||||
t[i]
|
||||
else:
|
||||
x
|
||||
propagateToOwner(header, x)
|
||||
else:
|
||||
propagateToOwner(header, x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue