clean up tyConst remnants
This commit is contained in:
parent
f488ed973d
commit
b3de34548d
10 changed files with 32 additions and 37 deletions
|
|
@ -106,7 +106,7 @@ proc getUniqueType*(key: PType): PType =
|
|||
of tyDistinct:
|
||||
if key.deepCopy != nil: result = key
|
||||
else: result = getUniqueType(lastSon(key))
|
||||
of tyGenericInst, tyOrdinal, tyMutable, tyConst, tyStatic:
|
||||
of tyGenericInst, tyOrdinal, tyMutable, tyStatic:
|
||||
result = getUniqueType(lastSon(key))
|
||||
#let obj = lastSon(key)
|
||||
#if obj.sym != nil and obj.sym.name.s == "TOption":
|
||||
|
|
@ -153,7 +153,7 @@ proc getUniqueType*(key: PType): PType =
|
|||
else:
|
||||
# ugh, we need the canon here:
|
||||
result = slowSearch(key, k)
|
||||
of tyUnused, tyUnused0: internalError("getUniqueType")
|
||||
of tyUnused, tyUnused0, tyUnused1: internalError("getUniqueType")
|
||||
|
||||
proc tableGetType*(tab: TIdTable, key: PType): RootRef =
|
||||
# returns nil if we need to declare this type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue