diff --git a/Upsilon/Binder/Binder.cs b/Upsilon/Binder/Binder.cs index 6397421..b2a24b7 100644 --- a/Upsilon/Binder/Binder.cs +++ b/Upsilon/Binder/Binder.cs @@ -783,11 +783,6 @@ namespace Upsilon.Binder var expression = BindExpression(e.Expression); var index = BindExpression(e.Index); - if (index.Type != Type.Number && index.Type != Type.String && index.Type != Type.Unknown) - { - _diagnostics.LogInvalidIndexExpression(expression.Type, index.Type, e.Span); - return new BoundBadExpression(e.Span); - } switch (expression.Type.Type) { case Type.Table: