diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index 02e2a20..e828ee8 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -335,6 +335,12 @@ namespace Upsilon.Binder 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; }