struct S { int a; } struct Ss { S[] _data; alias _data this; this(S[] s...) { _data = s; } } enum s1 = S(1); enum s2 = S(2); enum s3 = S(3); enum res = Ss(s1, s2, s3); // prints [S(3), S(3), S(3)] pragma(msg, res); Any idea how soon we should expect for something like this to be fixed? Any workarounds ?
I can reproduce this on 2.060, but it seems to be fixed in github. Might be a duplicate, but it's not obvious to me which commit would have fixed this.
*** This issue has been marked as a duplicate of issue 7810 ***