diff options
Diffstat (limited to 'compiler/ccgutils.nim')
-rw-r--r-- | compiler/ccgutils.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ccgutils.nim b/compiler/ccgutils.nim index 716e8db1d..4d6ba858c 100644 --- a/compiler/ccgutils.nim +++ b/compiler/ccgutils.nim @@ -108,7 +108,7 @@ proc getUniqueType*(key: PType): PType = of tyDistinct: if key.deepCopy != nil: result = key else: result = getUniqueType(lastSon(key)) - of tyGenericInst, tyOrdinal, tyStatic: + of tyGenericInst, tyOrdinal, tyStatic, tyAlias: result = getUniqueType(lastSon(key)) #let obj = lastSon(key) #if obj.sym != nil and obj.sym.name.s == "TOption": @@ -122,7 +122,7 @@ proc getUniqueType*(key: PType): PType = result = key else: result = slowSearch(key, k) - of tyArrayConstr, tyGenericInvocation, tyGenericBody, + of tyGenericInvocation, tyGenericBody, tyOpenArray, tyArray, tySet, tyRange, tyTuple, tySequence, tyForward, tyVarargs, tyProxy: # we have to do a slow linear search because types may need |