make Nim compile with older nim versions

This commit is contained in:
Andreas Rumpf
2017-12-28 19:48:21 +01:00
parent f3a895f043
commit e695f9d94e

View File

@@ -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