tyOrdinal now means "integral types". tyTypeClass created to take care of type constraints
This commit is contained in:
parent
3a5cf3d63a
commit
296ef07955
7 changed files with 43 additions and 30 deletions
|
|
@ -82,9 +82,11 @@ proc GetUniqueType*(key: PType): PType =
|
|||
if result == nil:
|
||||
gCanonicalTypes[k] = key
|
||||
result = key
|
||||
of tyGenericParam, tyTypeClass:
|
||||
InternalError("GetUniqueType")
|
||||
of tyGenericInst, tyDistinct, tyOrdinal, tyMutable, tyConst, tyIter:
|
||||
result = GetUniqueType(lastSon(key))
|
||||
of tyArrayConstr, tyGenericInvokation, tyGenericBody, tyGenericParam,
|
||||
of tyArrayConstr, tyGenericInvokation, tyGenericBody,
|
||||
tyOpenArray, tyArray, tyTuple, tySet, tyRange,
|
||||
tyPtr, tyRef, tySequence, tyForward, tyVarargs, tyProxy, tyVar:
|
||||
# we have to do a slow linear search because types may need
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue