From 30c3223cb426905be499de454aac81d79c59ae12 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Mon, 21 Jan 2019 14:38:15 +0100 Subject: [PATCH] Fix binding of calling C# methods not working --- Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs b/Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs index f4a913b..b48a850 100644 --- a/Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs +++ b/Upsilon/BoundTypes/UserDataBoundTypeDefinition.cs @@ -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; }