You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My last issue with a similar problem has been fixed so fast, thank you very much for doing this. I found another issue. If the base class has the same method with different parameters lua always tries to match the method to the main class and so you will get an error that the parameter does not match.
C# classes
public class parameter
{
string param1;
string param2;
}
public class master
{
public static string read( parameter test )
{
return "test";
}
}
public class testClass : master
{
public String strData;
public int intData;
public static string read( int test )
{
return "test";
}
public static string read2(int test)
{
return "test";
}
public static string read2(parameter test)
{
return "test";
}
}
testclass.read2(1) -- is working
testclass.read2(p) -- is working
testclass.read(p) -- is not working. it is also not working if the method in base class has two parameters instead of one
testclass.read(1) -- is working
You will also get another error messages if you first call
testclass.read(1)
and then
testclass.read(p)
Regards
Karsten
The text was updated successfully, but these errors were encountered:
My last issue with a similar problem has been fixed so fast, thank you very much for doing this. I found another issue. If the base class has the same method with different parameters lua always tries to match the method to the main class and so you will get an error that the parameter does not match.
C# classes
lua code:
result:
You will also get another error messages if you first call
and then
Regards
Karsten
The text was updated successfully, but these errors were encountered: