This commit is contained in:
Araq 2016-12-20 22:42:25 +01:00
commit c166394024
2 changed files with 49 additions and 1 deletions

View file

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