You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When happens here is that the construction of tbl leaves 1, 2, 3, 4, and 5 on the stack. Then, to prepare for the generic-for operation, 1 is replaced by next, 2 is replaced by tbl, while 3, 4, and 5 are left alone. The problem is that the generic-for always looks for three values, which in this case will be next, tbl and 3, which turns into next(tbl, 3). To fix this, the compiler needs to ensure that, if a third expression is not specified, it is filled in with nil.
For now, you can work around this by specifying the nil explicitly:
This script
Will produce the following output
Expected output:
The text was updated successfully, but these errors were encountered: