Skip to content

Commit 8c5558e

Browse files
committed
fix test case, "for (var i = 0; i < 5; i += 2) list.Add(i--);"
1 parent 4ea0650 commit 8c5558e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CSharp.lua/LuaSyntaxNodeTransform.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public void PopBlock() {
191191
if (block.TempCount > 0) {
192192
Contract.Assert(CurFunction.TempCount >= block.TempCount);
193193
CurFunction.TempCount -= block.TempCount;
194+
block.TempCount = 0;
194195
}
195196
}
196197

0 commit comments

Comments
 (0)