Fix recursive generic typed defs (#18809)
This commit is contained in:
parent
f373c17ad9
commit
7ae52d7791
2 changed files with 13 additions and 1 deletions
|
|
@ -378,7 +378,7 @@ proc handleGenericInvocation(cl: var TReplTypeVars, t: PType): PType =
|
|||
cl.typeMap = newTypeMapLayer(cl)
|
||||
|
||||
for i in 1..<t.len:
|
||||
var x = replaceTypeVarsT(cl, t[i])
|
||||
var x = replaceTypeVarsT(cl, header[i])
|
||||
assert x.kind != tyGenericInvocation
|
||||
header[i] = x
|
||||
propagateToOwner(header, x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue