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?
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)
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?