19.09.2017 16:46, Craig Black пишет:
class Foo
{
}

struct MyStruct
{
@nogc:
public:
  Foo foo; // This does not produce an error, but it still requires a GC scan
   void Bar()
   {
     foo = new Foo; // This produces an error
   }
}

it produces an error for me https://run.dlang.io/is/PbZE5i

Reply via email to