fix(lua/res1): make sure the test works with Lua 5.1
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
da31e60b02
commit
924b2344af
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ end
|
|||
|
||||
function OR(...)
|
||||
-- Nary Or
|
||||
local arg = table.pack(...)
|
||||
local arg = {...}
|
||||
if #arg == 0 then
|
||||
return False
|
||||
elseif #arg == 1 then
|
||||
|
@ -55,7 +55,7 @@ function OR(...)
|
|||
end
|
||||
|
||||
function print_types(env, ...)
|
||||
local arg = table.pack(...)
|
||||
local arg = {...}
|
||||
local tc = type_checker(env)
|
||||
for i = 1, #arg do
|
||||
print(tostring(arg[i]) .. " : " .. tostring(tc:check(arg[i])))
|
||||
|
|
Loading…
Reference in a new issue