* fixed macros.getTypeImpl for a symbol of type tyGenericBody * added test case and commented test code
This commit is contained in:
parent
b826f85731
commit
ec50dab57d
3 changed files with 57 additions and 21 deletions
|
|
@ -175,7 +175,12 @@ proc mapTypeToAstX(t: PType; info: TLineInfo;
|
|||
result.add mapTypeToAst(t.sons[i], info)
|
||||
else:
|
||||
result = mapTypeToAstX(t.lastSon, info, inst, allowRecursion)
|
||||
of tyGenericBody, tyOrdinal:
|
||||
of tyGenericBody:
|
||||
if inst:
|
||||
result = mapTypeToAstX(t.lastSon, info, inst, true)
|
||||
else:
|
||||
result = mapTypeToAst(t.lastSon, info)
|
||||
of tyOrdinal:
|
||||
result = mapTypeToAst(t.lastSon, info)
|
||||
of tyDistinct:
|
||||
if inst:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue