made some tests green; implemented 'from module import nil'

This commit is contained in:
Araq 2013-05-19 23:17:16 +02:00
commit 1c9b4e5d33
16 changed files with 84 additions and 975 deletions

View file

@ -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))