From 1e9d83efb0e59d3a71bf3b077808b96f29c5e529 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 8 Oct 2020 14:17:27 +0200 Subject: fixes #15512 (#15521) --- compiler/injectdestructors.nim | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/compiler/injectdestructors.nim b/compiler/injectdestructors.nim index 28f2c93f1..bec8b49f4 100644 --- a/compiler/injectdestructors.nim +++ b/compiler/injectdestructors.nim @@ -593,6 +593,18 @@ template handleNestedTempl(n, processCall: untyped, willProduceStmt = false) = result.add processScope(c, bodyScope, bodyResult) dec c.inLoop + of nkParForStmt: + inc c.inLoop + result = shallowCopy(n) + let last = n.len-1 + for i in 0..commit diff stats
blob: 4b203512ca25dd62009a1b4a65853118884fd857 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14