Skip to content

calling methods with params keyword #125

Closed

Description

@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

Activity

  1. viniciusjarina commented on Nov 24, 2014

    @viniciusjarina
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions