From 924b2344afcae3e7e24e2c41ee9044055ca9f124 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Thu, 15 May 2014 14:47:42 -0700 Subject: [PATCH] fix(lua/res1): make sure the test works with Lua 5.1 Signed-off-by: Leonardo de Moura --- tests/lua/res1.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lua/res1.lua b/tests/lua/res1.lua index 43d88d700..cf052e3cc 100644 --- a/tests/lua/res1.lua +++ b/tests/lua/res1.lua @@ -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])))