This commit is contained in:
Arne Döring 2019-08-04 19:31:55 +02:00 • committed by Andreas Rumpf
commit b73d097d36
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,15 @@
discard """
errormsg: "interpretation requires too many iterations; if you are sure this is not a bug in your code edit compiler/vmdef.MaxLoopIterations and rebuild the compiler"
"""
# issue #9829
macro foo(): untyped =
let lines = ["123", "5423"]
var idx = 0
while idx < lines.len():
if lines[idx].len() < 1:
inc(idx)
continue
foo()