From 986d00b1a0a0b530f541c109bbbf3ef98477fe0d Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 7 Dec 2018 20:15:39 +0100 Subject: [PATCH] Handle chained function call expressions --- Upsilon/Binder/Binder.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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; }