fix #829; (macros.quote)

the fix is a little bit peculiar:

the inserted call to getAst was getting a false-positive for being a lambda proc,
because lambdalifting.isInnerProc takes into account who is the owner of a given
symbol: (a nested proc is a callable symbol owned by the enclosing proc)
This commit is contained in:
Zahary Karadjov 2014-03-09 21:04:12 +02:00
commit 29b7104a53

View file

@ -1358,7 +1358,7 @@ proc expectString(c: PContext, n: PNode): string =
localError(n.info, errStringLiteralExpected)
proc getMagicSym(magic: TMagic): PSym =
result = newSym(skProc, getIdent($magic), getCurrOwner(), gCodegenLineInfo)
result = newSym(skProc, getIdent($magic), systemModule, gCodegenLineInfo)
result.magic = magic
proc newAnonSym(kind: TSymKind, info: TLineInfo,