Skip to content

Fix for #198 (var args are nil when void is passed)#324

Open
Joy-less wants to merge 2 commits into
moonsharp-devs:legacy/2.0from
Joy-less:varargs-void-fix
Open

Fix for #198 (var args are nil when void is passed)#324
Joy-less wants to merge 2 commits into
moonsharp-devs:legacy/2.0from
Joy-less:varargs-void-fix

Conversation

@Joy-less

Copy link
Copy Markdown
function x(...)
  print(select('#', ...))
end
x()

Previous output: 1
New output: 0

Previously, when nothing was passed to variadic arguments (...) it would actually pass nil. With the fix, it passes nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant