summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2019-01-01 18:20:48 +0530
committerMiran <narimiran@disroot.org>2019-01-01 13:50:48 +0100
commit9faad7591e37fa074544206d1de17e59f56bd576 (patch)
tree5ab5e233cc4cd822f67c748eb025a4aa953dfb37 /compiler/semstmts.nim
parente7fa8f3443ebe03d74fb20b7f4d0096756211463 (diff)
downloadNim-9faad7591e37fa074544206d1de17e59f56bd576.tar.gz
Deprecate gc v2 (#10151)
* Deprecate gc v2

* warnDeprecated now has custom messages
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index f60e2556d..59eb23162 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -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.