title: Create array of classes in d
body: <p>It's my class</p>
  
  <pre class="lang-d prettyprint-override"><code>module figure;
  import block; 
  class Figure {
      Block[] body;
      this() {
          this.body ~= new Block();
      }
  }
  </code></pre>
  
  <p>And I got "no identifier for declarator Block[]"</p>
  
  <p>Block.d file</p>
  
  <pre class="lang-d prettyprint-override"><code>module block;
  
  import std.stdio;
  
  class Block {
    this() {
      writeln("In block.d");
    }
  }
  </code></pre>