Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling methods with params keyword #125

Closed
sophiepeithos opened this issue Nov 24, 2014 · 1 comment
Closed

calling methods with params keyword #125

sophiepeithos opened this issue Nov 24, 2014 · 1 comment

Comments

@sophiepeithos
Copy link

@sophiepeithos sophiepeithos commented Nov 24, 2014

for example
C# code:
public class Test
{
static public void Method(int a, params int[] others) {}
}

lua code:
Test.Method(1)--invalid arguments to method: Test.Method
Test.Method(1, {}) --correct

@viniciusjarina
Copy link
Member

@viniciusjarina viniciusjarina commented Nov 24, 2014

This is odd.. this seems to be working on tests https://github.com/NLua/NLua/blob/master/tests/LuaTests.cs#L1949

I will take a look later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.