aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
Diffstat (limited to 'testes')
-rw-r--r--testes/nextvar.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/testes/nextvar.lua b/testes/nextvar.lua
index a7fe625e..9d919631 100644
--- a/testes/nextvar.lua
+++ b/testes/nextvar.lua
@@ -671,7 +671,8 @@ collectgarbage()
671 671
672local function f (n, p) 672local function f (n, p)
673 local t = {}; for i=1,p do t[i] = i*10 end 673 local t = {}; for i=1,p do t[i] = i*10 end
674 return function (_,n) 674 return function (_, n, ...)
675 assert(select("#", ...) == 0) -- no extra arguments
675 if n > 0 then 676 if n > 0 then
676 n = n-1 677 n = n-1
677 return n, table.unpack(t) 678 return n, table.unpack(t)