Fix binding of calling C# methods not working

This commit is contained in:
Deukhoofd 2019-01-21 14:38:15 +01:00
parent 7f58db1955
commit 30c3223cb4
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ namespace Upsilon.BoundTypes
var parent =
(UserDataBoundTypeDefinition) ((UserDataVariableSymbol) variable).BoundTypeDefinition;
if (functionParameter.ActualType != null &&
!string.Equals(functionParameter.ActualType, parent.Name, StringComparison.InvariantCultureIgnoreCase))
!parent.ValidInternalTypes.Any(x => string.Equals(x.Name, functionParameter.ActualType)))
{
return false;
}