This commit is contained in:
Araq 2015-03-25 14:50:08 +01:00
commit e680e43fc2
2 changed files with 6 additions and 2 deletions

View file

@ -1090,6 +1090,8 @@ proc freshType(res, prev: PType): PType {.inline.} =
proc semTypeClass(c: PContext, n: PNode, prev: PType): PType =
# if n.sonsLen == 0: return newConstraint(c, tyTypeClass)
if nfBase2 in n.flags:
message(n.info, warnDeprecated, "use 'concept' instead; 'generic'")
result = newOrPrevType(tyUserTypeClass, prev, c)
result.n = n