You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localfunctionfoo (a: string, b: string, c: string, d:string, e?: string)
print(a, b, c, d, e)
endlocalt= { 'a', 'b', 'c', 'd' }
assert(#t>=4)
foo(table.unpack(t)) -- ERROR: wrong number of arguments (given 2, expects at least 4 and at most 5)foo('bar', table.unpack(t)) -- ERROR: wrong number of arguments (given 3, expects at least 4 and at most 5)
note: #pragma arity on/off is a workaround.
The text was updated successfully, but these errors were encountered:
note:
#pragma arity on/off
is a workaround.The text was updated successfully, but these errors were encountered: