fixes for the new overloading resolution
This commit is contained in:
parent
5b0d8246f7
commit
4b0cdc6db7
4 changed files with 14 additions and 21 deletions
|
|
@ -86,10 +86,9 @@ proc GetUniqueType*(key: PType): PType =
|
|||
if result == nil:
|
||||
gCanonicalTypes[k] = key
|
||||
result = key
|
||||
of tyGenericParam, tyTypeClass:
|
||||
of tyGenericParam, tyTypeClass, tyTypeDesc:
|
||||
InternalError("GetUniqueType")
|
||||
of tyGenericInst, tyDistinct, tyOrdinal, tyMutable, tyConst, tyIter,
|
||||
tyTypeDesc:
|
||||
of tyGenericInst, tyDistinct, tyOrdinal, tyMutable, tyConst, tyIter:
|
||||
result = GetUniqueType(lastSon(key))
|
||||
of tyArrayConstr, tyGenericInvokation, tyGenericBody,
|
||||
tyOpenArray, tyArray, tySet, tyRange, tyTuple,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue