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 ?
Comment #1 by clugdbug — 2012-10-22T03:17:28Z
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.
Comment #2 by clugdbug — 2012-12-12T04:54:32Z
*** This issue has been marked as a duplicate of issue 7810 ***