8000 calling methods with params keyword · Issue #125 · NLua/NLua · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

calling methods with params keyword #125

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

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

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

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2E6A
2 participants
0