From 34afaeeeddce3c96d0798c44ea4f4fcca93a5fd0 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 28 Jul 2016 13:04:40 +0200 Subject: [PATCH] .base pragma works for generic methods --- compiler/pragmas.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index c15794b998..d7d1ed8388 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