diff options
-rw-r--r-- | compiler/ast.nim | 2 | ||||
-rw-r--r-- | compiler/astalgo.nim | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 8ebe5afa6..64b59a283 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -735,7 +735,7 @@ type # check for the owner when touching 'usedGenerics'. usedGenerics*: seq[PInstantiation] tab*: TStrTable # interface table for modules - of skLet, skVar, skField: + of skLet, skVar, skField, skForVar: guard*: PSym else: nil magic*: TMagic diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index e66158e8d..f23e9a983 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -450,9 +450,10 @@ proc debug(n: PSym) = writeln(stdout, "skUnknown") else: #writeln(stdout, ropeToStr(symToYaml(n, 0, 1))) - writeln(stdout, ropeToStr(ropef("$1_$2: $3, $4, $5", [ - toRope(n.name.s), toRope(n.id), flagsToStr(n.flags), - flagsToStr(n.loc.flags), lineInfoToStr(n.info)]))) + writeln(stdout, "$1_$2: $3, $4, $5, $6" % [ + n.name.s, $n.id, flagsToStr(n.flags).ropeToStr, + flagsToStr(n.loc.flags).ropeToStr, lineInfoToStr(n.info).ropeToStr, + $n.kind]) proc debug(n: PType) = writeln(stdout, ropeToStr(debugType(n))) |