fixes #5131
This commit is contained in:
parent
f484d1b20b
commit
c166394024
2 changed files with 49 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ proc mapTypeToAstX(t: PType; info: TLineInfo;
|
|||
for i in 1 .. < t.len-1:
|
||||
result.add mapTypeToAst(t.sons[i], info)
|
||||
else:
|
||||
result = mapTypeToAst(t.lastSon, info)
|
||||
result = mapTypeToAstX(t.lastSon, info, inst, allowRecursion)
|
||||
of tyGenericBody, tyOrdinal, tyUserTypeClassInst:
|
||||
result = mapTypeToAst(t.lastSon, info)
|
||||
of tyDistinct:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue