parent
214f48eae9
commit
1e63f1edb3
6 changed files with 110 additions and 67 deletions
|
|
@ -286,6 +286,13 @@ proc makeVarType*(c: PContext, baseType: PType; kind = tyVar): PType =
|
|||
result = newTypeS(kind, c)
|
||||
addSonSkipIntLit(result, baseType)
|
||||
|
||||
proc makeVarType*(owner: PSym, baseType: PType; kind = tyVar): PType =
|
||||
if baseType.kind == kind:
|
||||
result = baseType
|
||||
else:
|
||||
result = newType(kind, owner)
|
||||
addSonSkipIntLit(result, baseType)
|
||||
|
||||
proc makeTypeDesc*(c: PContext, typ: PType): PType =
|
||||
if typ.kind == tyTypeDesc:
|
||||
result = typ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue