Handle chained function call expressions

This commit is contained in:
Deukhoofd 2018-12-07 20:15:39 +01:00
parent 77be6fd996
commit 986d00b1a0
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 6 additions and 0 deletions

View File

@ -335,6 +335,12 @@ namespace Upsilon.Binder
return new VariableSymbol(fullStopIndexExpression.Index, Type.Unknown, true); return new VariableSymbol(fullStopIndexExpression.Index, Type.Unknown, true);
} }
} }
if (expression.Kind == BoundKind.BoundFunctionCallExpression)
{
return new VariableSymbol("", expression.Type, true);
}
_diagnostics.LogError("Can't resolve variable", expression.Span);
return null; return null;
} }