Skip to content
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

Assertation failed and incorrect generation for creating delegates #24

Closed
AqlaSolutions opened this issue Jul 27, 2017 · 0 comments
Closed

Comments

@AqlaSolutions
Copy link

AqlaSolutions commented Jul 27, 2017

LuaSyntaxNodeTransfor.Object:50 when processing new Action<dynamic> argument.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NativeApi;

public class Program
{
    public static void Main()
    {
        var script = G.Get("script");
        script.on_init(new Action<dynamic>(EventHandler));
    }

    static void EventHandler(dynamic eve)
    {
    }
}

namespace NativeApi
{
    public class G
    {
        public static dynamic Get(dynamic n)
        {
            throw new NotImplementedException();
        }

        public static dynamic Set(dynamic n, dynamic v)
        {
            throw new NotImplementedException();
        }
    }
}

<?xml version="1.0" encoding="utf-8" ?>
<meta>
  <assembly>
    <namespace name="NativeApi">
      <class name="G" Name="_G">
        <method name="Get" ArgCount="1" Template="_G[{0}]" />
        <method name="Set" ArgCount="2" Template="_G[{0}] = {1}" />
      </class>
    </namespace>
  </assembly>
</meta>

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

1 participant