Fix binding functions return types not always working
This commit is contained in:
parent
ac12fbb60d
commit
c7bb42711a
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue