This commit is contained in:
Araq 2020-07-07 23:59:13 +02:00 • committed by Andreas Rumpf
commit cdce245a23
2 changed files with 51 additions and 4 deletions

View file

@ -88,3 +88,17 @@ proc ifexpr(i, a, b: int) {.compilerproc, noinline.} =
else: "index " & $i & " not in " & $a & " .. " & $b)
ifexpr(2, 0, 1)
# bug #14899
template toSeq(): untyped =
block:
var result = @[1]
result
proc clItems(s: seq[int]) =
assert s.len == 1
proc escapeCheck =
clItems(toSeq())
escapeCheck()