util.array: Fix new() library function

This commit is contained in:
Kim Alvefur 2023-07-22 16:31:05 +02:00
parent 8b013e9471
commit a1f053229c
2 changed files with 10 additions and 1 deletions

View file

@ -36,7 +36,9 @@ local function new_array(self, t, _s, _var)
return setmetatable(t or {}, array_mt);
end
array.new = new_array;
function array.new(t)
return setmetatable(t or {}, array_mt);
end
function array_mt.__add(a1, a2)
local res = new_array();