From 4ba4c90e711c6204aa40e38347c5a5a076d9370e Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 23 May 2025 15:07:45 +0800 Subject: Added `-` for implicit object. --- spec/outputs/with.lua | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'spec/outputs/with.lua') diff --git a/spec/outputs/with.lua b/spec/outputs/with.lua index 20c5d44..867d1b5 100644 --- a/spec/outputs/with.lua +++ b/spec/outputs/with.lua @@ -203,15 +203,35 @@ do return _with_0 end)()) local a - local _with_0 = tb + do + local _with_0 = tb + do + local _accum_0 + while true do + if _with_0.v then + _accum_0 = _with_0.a + break + end + end + _with_0 = _accum_0 + end + a = _with_0 + end local _accum_0 while true do - if _with_0.v then - _accum_0 = _with_0.a + local _with_0 = tb + local _accum_1 + while true do + if _with_0 ~= nil then + _accum_1 = 1 + break + end break end + _with_0 = _accum_1 + _accum_0 = _with_0 + break end - _with_0 = _accum_0 - a = _with_0 + a = _accum_0 end return nil -- cgit v1.2.3-55-g6feb