calling methods with params keyword #125

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

Comments

Projects
None yet
2 participants
@sophiepeithos

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

This comment has been minimized.

Show comment
Hide comment
@viniciusjarina

viniciusjarina Nov 24, 2014

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.

Member

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