Open DavePearce opened 4 years ago
There is currently a limitation with respect to typing the index variable of a for loop. For example:
method f(uint x): ... method main(): for x in 0...10: f(x)
Here, the type of x is set as int and, hence, the above fails to type check without necessary casts.
x
int
There is currently a limitation with respect to typing the index variable of a for loop. For example:
Here, the type of
x
is set asint
and, hence, the above fails to type check without necessary casts.