Deprecate gc v2 (#10151)
* Deprecate gc v2 * warnDeprecated now has custom messages
This commit is contained in:
parent
e7fa8f3443
commit
9faad7591e
12 changed files with 21 additions and 21 deletions
|
|
@ -1582,7 +1582,7 @@ proc semMethodPrototype(c: PContext; s: PSym; n: PNode) =
|
|||
foundObj = true
|
||||
x.methods.add((col,s))
|
||||
if not foundObj:
|
||||
message(c.config, n.info, warnDeprecated, "generic method not attachable to object type")
|
||||
message(c.config, n.info, warnDeprecated, "generic method not attachable to object type is deprecated")
|
||||
else:
|
||||
# why check for the body? bug #2400 has none. Checking for sfForward makes
|
||||
# no sense either.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue