Removed accidental syntax

This commit is contained in:
2018-11-19 14:30:00 +01:00
parent 2787d947b5
commit c4962ac24c

View File

@@ -427,7 +427,7 @@ namespace Upsilon.Binder
case Type.String when index.Type == Type.Number: case Type.String when index.Type == Type.Number:
return new BoundIndexExpression(expression, index, Type.String); return new BoundIndexExpression(expression, index, Type.String);
default: default:
\ _diagnostics.LogInvalidIndexExpression(expression.Type, index.Type, e.Span); _diagnostics.LogInvalidIndexExpression(expression.Type, index.Type, e.Span);
return new BoundLiteralExpression(new LuaNull()); return new BoundLiteralExpression(new LuaNull());
} }
} }