Fix binding functions return types not always working

This commit is contained in:
Deukhoofd 2019-01-23 15:33:17 +01:00
parent ac12fbb60d
commit c7bb42711a
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 0 additions and 4 deletions

View File

@ -365,10 +365,6 @@ namespace Upsilon.Binder
if (parent.Properties.TryGetValue(fullStopIndexExpression.Index.ToLowerInvariant(), if (parent.Properties.TryGetValue(fullStopIndexExpression.Index.ToLowerInvariant(),
out var bDefProperty)) 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); var boundDef = BoundTypeHandler.GetTypeDefinition(bDefProperty.Type.UserData ?? bDefProperty.ActualType);
if (boundDef != null) if (boundDef != null)
{ {