summary refs log tree commit diff stats
path: root/compiler/pragmas.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-28 13:04:40 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-28 20:23:24 +0200
commit34afaeeeddce3c96d0798c44ea4f4fcca93a5fd0 (patch)
treeb28d18d131f0b43bccb62002fa6172a0d87becfa /compiler/pragmas.nim
parent471672fecc579b9453d3e756d3fa4f51a8e72b5e (diff)
downloadNim-34afaeeeddce3c96d0798c44ea4f4fcca93a5fd0.tar.gz
.base pragma works for generic methods
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r--compiler/pragmas.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index c15794b99..d7d1ed838 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -68,7 +68,7 @@ const
   letPragmas* = varPragmas
   procTypePragmas* = {FirstCallConv..LastCallConv, wVarargs, wNosideeffect,
                       wThread, wRaises, wLocks, wTags, wGcSafe}
-  allRoutinePragmas* = procPragmas + iteratorPragmas + lambdaPragmas
+  allRoutinePragmas* = methodPragmas + iteratorPragmas + lambdaPragmas
 
 proc pragma*(c: PContext, sym: PSym, n: PNode, validPragmas: TSpecialWords)
 # implementation