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:
parent
752352a683
commit
29b7104a53
1 changed files with 1 additions and 1 deletions
|
|
@ -1358,7 +1358,7 @@ proc expectString(c: PContext, n: PNode): string =
|
||||||
localError(n.info, errStringLiteralExpected)
|
localError(n.info, errStringLiteralExpected)
|
||||||
|
|
||||||
proc getMagicSym(magic: TMagic): PSym =
|
proc getMagicSym(magic: TMagic): PSym =
|
||||||
result = newSym(skProc, getIdent($magic), getCurrOwner(), gCodegenLineInfo)
|
result = newSym(skProc, getIdent($magic), systemModule, gCodegenLineInfo)
|
||||||
result.magic = magic
|
result.magic = magic
|
||||||
|
|
||||||
proc newAnonSym(kind: TSymKind, info: TLineInfo,
|
proc newAnonSym(kind: TSymKind, info: TLineInfo,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue