From ac2f4ff4cdd3286ecaf31aec47d9d8aadfa75b0f Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 16 May 2022 15:26:47 +0800 Subject: fixing #102 by adding extra condition assignment while continue skip the loop. --- spec/outputs/loops.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec') diff --git a/spec/outputs/loops.lua b/spec/outputs/loops.lua index 7f87b2d..e5c189e 100644 --- a/spec/outputs/loops.lua +++ b/spec/outputs/loops.lua @@ -192,6 +192,7 @@ repeat repeat a = a + 1 if a == 5 then + _cond_0 = a == 10 _continue_0 = true break end @@ -214,6 +215,7 @@ repeat x = x + 1 y = x if x < 5 then + _cond_0 = y == 10 _continue_0 = true break end -- cgit v1.2.3-55-g6feb