lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>>>>> "Joseph" == Joseph C Sible <josephcsible@gmail.com> writes:

 Joseph> I can confirm as well, and I also managed to minimize the
 Joseph> reproducer some more:

 Joseph>     local var1 <const> = nil
 Joseph>     local var2 <const> = nil
 Joseph>     do
 Joseph>         local var3 <close> = setmetatable({}, {__close = function() end})
 Joseph>     end
 Joseph>     local var4 = true

Here's a related but slightly different test case:

do
  local v1 <const>, v2 <const>, v3 <close>
          = nil, nil, setmetatable({}, {__close = function() end})
end
local v4 = true

-- 
Andrew.