made some tests green; implemented 'from module import nil'
This commit is contained in:
parent
7b36d3d6ff
commit
1c9b4e5d33
16 changed files with 84 additions and 975 deletions
|
|
@ -86,7 +86,9 @@ proc GetUniqueType*(key: PType): PType =
|
|||
if result == nil:
|
||||
gCanonicalTypes[k] = key
|
||||
result = key
|
||||
of tyGenericParam, tyTypeClass, tyTypeDesc:
|
||||
of tyTypeDesc, tyTypeClass:
|
||||
InternalError("value expected, but got a type")
|
||||
of tyGenericParam:
|
||||
InternalError("GetUniqueType")
|
||||
of tyGenericInst, tyDistinct, tyOrdinal, tyMutable, tyConst, tyIter:
|
||||
result = GetUniqueType(lastSon(key))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue