NLua / NLua

Bridge between Lua and the .NET.

Home Page:http://nlua.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

calling methods with params keyword

sophiepeithos opened this issue · comments

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

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.