Fixes for binder not being able to get proper method
This commit is contained in:
parent
92586e4939
commit
fb2af879c9
|
@ -74,6 +74,14 @@ namespace Upsilon.BaseTypes.UserData
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!typeof(ScriptType).IsAssignableFrom(matchParameter.ParameterType) &&
|
||||||
|
argument is IUserData ud)
|
||||||
|
{
|
||||||
|
var csharpType = ud.GetCSharpType();
|
||||||
|
if (matchParameter.ParameterType.IsAssignableFrom(csharpType))
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!matchParameter.ParameterType.IsAssignableFrom(argumentType))
|
if (!matchParameter.ParameterType.IsAssignableFrom(argumentType))
|
||||||
{
|
{
|
||||||
validMatch = false;
|
validMatch = false;
|
||||||
|
|
Loading…
Reference in New Issue