support for accessing the inferred concept type params with the dot operator

This commit is contained in:
Zahary Karadjov 2016-07-29 18:12:05 +03:00
commit eab1d0cc02
6 changed files with 24 additions and 7 deletions

View file

@ -101,6 +101,8 @@ proc getUniqueType*(key: PType): PType =
gCanonicalTypes[k] = key
result = key
of tyTypeDesc, tyTypeClasses, tyGenericParam, tyFromExpr, tyFieldAccessor:
if key.isResolvedUserTypeClass:
return getUniqueType(lastSon(key))
if key.sym != nil:
internalError(key.sym.info, "metatype not eliminated")
else: