Skip to content

Calling an table with a __call metamethod from C# fails #10

@nrother

Description

@nrother

This fails:

dynamic tab = lua.NewTable("tab");
dynamic mt = lua.NewTable("mt");
mt.__call = new Func<dynamic, object>((t) => "call no args");
tab.SetMetatable(mt);
lua.tab()); //fail
System.InvalidCastException: Das Objekt des Typs "NLua.LuaTable" kann nicht in Typ "NLua.LuaFunction" umgewandelt werden.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions