fixes #5417
This commit is contained in:
parent
22789a0bfc
commit
2d546ca0ac
5 changed files with 28 additions and 7 deletions
|
|
@ -540,7 +540,7 @@ proc genBreakStmt(p: BProc, t: PNode) =
|
|||
# named break?
|
||||
assert(t.sons[0].kind == nkSym)
|
||||
var sym = t.sons[0].sym
|
||||
assert(sym.loc.k == locOther)
|
||||
doAssert(sym.loc.k == locOther)
|
||||
idx = sym.position-1
|
||||
else:
|
||||
# an unnamed 'break' can only break a loop after 'transf' pass:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue