Well, actually... take it back.

When I did try this syntax, I receive(d) the following error. I then went and created this test which I thought couldn't go wrong.

with both dmd and gdc ...



struct S
{
  int a;
  string b;
}

class A
{
   S[] items;
   abstract void doit();
}

class B: A
{
this() {items = [ {10, "first"}, {20, "second"}];} // line 21
   override void doit() { }
}

(21): Error: found '}' when expecting ';' following statement
(21): Error: found ',' instead of statement

Reply via email to