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
Originally posted by Luke100000 January 8, 2024
Why can it not infer the type here? How would I rewrite this to be type conform, without spamming type annotations?
localy=0fori=1, 2doy=y+1-- here, y is inferred as an integer correctlyforj=1, 2doy=y+1-- can not infer typeend-- sometimes a bit more complexity is required to trigger the issue, so lets add another loopforj=1, 2doy=y+1-- can not infer typeendendprint(y)
The text was updated successfully, but these errors were encountered:
Discussed in #2471
Originally posted by Luke100000 January 8, 2024
Why can it not infer the type here? How would I rewrite this to be type conform, without spamming type annotations?
The text was updated successfully, but these errors were encountered: