Fix binding functions return types not always working

This commit is contained in:
Deukhoofd committed 2019-01-23 15:33:17 +01:00
1 parent ac12fbb60d
commit c7bb42711a
1 file changed
-4
-4
View File
@@ -365,10 +365,6 @@ namespace Upsilon.Binder
if (parent.Properties.TryGetValue(fullStopIndexExpression.Index.ToLowerInvariant(),
out var bDefProperty))
{
var userData = bDefProperty.Type.UserData;
if (string.IsNullOrEmpty(userData))
return new VariableSymbol(fullStopIndexExpression.Index, Type.Unknown, true);
var boundDef = BoundTypeHandler.GetTypeDefinition(bDefProperty.Type.UserData ?? bDefProperty.ActualType);
if (boundDef != null)
{