coroutine.resume() passes only the first argument
Closed this issue · 0 comments
wraith321 commented
The following code results in "1, nil, nil, nil"
local function testfunc(a, b, c, d)
print(tostring(a), tostring(b), tostring(c), tostring(d))
end
coroutine.resume(coroutine.create(testfunc), "1", "2", "3", "4")