Comment #0 by bearophile_hugs — 2014-07-11T09:12:26Z
enum A { a }
enum B { b }
struct T { A x; B y; }
void main() {
T t;
auto r1 = [int(t.x), int(t.y)]; // OK
auto r2 = [t.tupleof]; // error
}
Gives with dmd 2.066beta2:
test.d(7,16): Error: cannot implicitly convert expression (t.x) of type A to B
Comment #1 by robert.schadek — 2024-12-13T18:22:01Z