diff options
author | Araq <rumpf_a@web.de> | 2014-06-30 23:36:46 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-06-30 23:36:46 +0200 |
commit | 3c818c89be8cc7890b9d9b7d165a2cf472a74d24 (patch) | |
tree | c11964c2e1719b3830d347c44a7fa0fc344d1d86 /compiler/semstmts.nim | |
parent | c41e099118f005325082c74317e2c73679299b9f (diff) | |
download | Nim-3c818c89be8cc7890b9d9b7d165a2cf472a74d24.tar.gz |
fixes #1285
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 11399b38b..3cb9691eb 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -33,7 +33,7 @@ proc semBreakOrContinue(c: PContext, n: PNode): PNode = x.info = n.info incl(s.flags, sfUsed) n.sons[0] = x - suggestSym(x, s) + suggestSym(x.info, s) else: localError(n.info, errInvalidControlFlowX, s.name.s) elif (c.p.nestedLoopCounter <= 0) and (c.p.nestedBlockCounter <= 0): @@ -319,7 +319,7 @@ proc semIdentDef(c: PContext, n: PNode, kind: TSymKind): PSym = incl(result.flags, sfGlobal) else: result = semIdentWithPragma(c, kind, n, {}) - suggestSym(n, result) + suggestSym(n.info, result) proc checkNilable(v: PSym) = if sfGlobal in v.flags and {tfNotNil, tfNeedsInit} * v.typ.flags != {}: |