This commit is contained in:
Araq 2012-07-28 16:37:31 +02:00
commit b9afdffb3e
5 changed files with 20 additions and 13 deletions

View file

@ -59,7 +59,8 @@ const
abstractInst* = {tyGenericInst, tyDistinct, tyConst, tyMutable, tyOrdinal}
skipPtrs* = {tyVar, tyPtr, tyRef, tyGenericInst, tyConst, tyMutable}
typeclassPtrs* = abstractPtrs + {tyTypeClass}
typedescPtrs* = abstractPtrs + {tyTypeDesc}
typedescInst* = abstractInst + {tyTypeDesc}
proc skipTypes*(t: PType, kinds: TTypeKinds): PType
proc containsObject*(t: PType): bool