From e695f9d94e752fbf18012f9ee164af1ba0649fa1 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 28 Dec 2017 19:48:21 +0100 Subject: [PATCH] make Nim compile with older nim versions --- compiler/semasgn.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semasgn.nim b/compiler/semasgn.nim index db08605cf..67af6ade7 100644 --- a/compiler/semasgn.nim +++ b/compiler/semasgn.nim @@ -261,7 +261,7 @@ proc addParam(procType: PType; param: PSym) = rawAddSon(procType, param.typ) proc liftBody(c: PContext; typ: PType; kind: TTypeAttachedOp; - info: TLineInfo): PSym {.discardable.} = + info: TLineInfo): PSym = var a: TLiftCtx a.info = info a.c = c