fixes #2405
This commit is contained in:
parent
d5fc62022a
commit
e680e43fc2
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue