namespace JintTest
{
static class Program
{
[STAThread]
static void Main()
{
JintEngine je = new JintEngine();
try
{
je.Run("
var test = new JintTest.Test();
var a = [1,2,3];
test.CopyO(a);
test.Copy(a);
");
}
catch (JintException e)
{
MessageBox.Show(e.Message);
}
}
}
public class Test
{
public void Copy(int[] a)
{
}
public void CopyO(object a)
{
}
}
}
I can not call the Сopy. No matching overload found Сopy. With CopyO all right.
What's wrong?