diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index 6b0af2d..f3a80b9 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -322,6 +322,10 @@ namespace Upsilon.Binder { var fullStopIndexExpression = (BoundFullStopIndexExpression) expression; var indexerExpression = fullStopIndexExpression.Expression; + if (indexerExpression.Type == Type.Unknown) + { + return new VariableSymbol(fullStopIndexExpression.Index, Type.Unknown, true); + } var indexerVariable = ResolveVariable(indexerExpression, diagnostics); if (indexerVariable == null) { diff --git a/Upsilon/Evaluator/Script.cs b/Upsilon/Evaluator/Script.cs index 7b53dac..b9fe72f 100644 --- a/Upsilon/Evaluator/Script.cs +++ b/Upsilon/Evaluator/Script.cs @@ -1,8 +1,6 @@ using System; -using System.Collections; using System.Collections.Generic; using System.Globalization; -using System.Linq; using Upsilon.BaseTypes; using Upsilon.BaseTypes.UserData; using Upsilon.Binder;