Typechecking reacts to numeric table in loop starting with 0

As title describes, even tho that should be expected.

Some important info:
image

Expected behavior

Typechecking shouldn’t react to this at all.

Hi there, thanks for the report! This is not actually from the type system at all. It’s a lint built into Luau’s default linter and it is expected behavior. If you’d like to silence it, you can do so by adding --!nolint ForRange to your script.

Oh I see, i wasn’t familiar with this documentation, thank you. Either way, i recoded numeric table into a variable with condition to it to return other number for a purpose of the game and the warning went away.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.