Comment #0 by bearophile_hugs — 2013-03-20T17:13:42Z
This is a wrong program:
import std.typecons: Tuple;
void main() {
Tuple!(string, int)[] data;
foreach (string first, second; data) {}
}
DMD 2.063alpha gives an error with no line number:
Error: cannot implicitly convert expression (0) of type int to string
test.d(4): Error: incompatible types for ((__key1671) < (__aggr1672.length)): 'string' and 'uint'
test.d(4): Error: '__key1671 += 1' is not a scalar, it is a string
test.d(4): Error: incompatible types for ((__key1671) += (1)): 'string' and 'int'
test.d(4): Error: cannot implicitly convert expression (__key1671) of type string to uint
(Tagged with major priority according to a request by Don for errors with no line number.)