title: cannot instantiate concrete class in Julia
body: <p>I am just getting started with Julia and have defined a module as follows:</p>
  
  <p><strong>MyModule.jl</strong></p>
  
  <pre><code>module MyModule
  export ConcreteClass
  end
  </code></pre>
  
  <p>Then I have a file which defined some trivial abstract class as:</p>
  
  <p><strong>generics.jl</strong></p>
  
  <pre><code>abstract MyAbstract
  </code></pre>
  
  <p>After this I try and inherit this class:</p>
  
  <p><strong>concrete.jl</strong></p>
  
  <pre><code>type ConcreteClass &lt;: MyAbstract
  
  end
  </code></pre>
  
  <p>Of course, this is trivial but I just wanted to be able to instantiate a trivial example. I added the path to my project sources to the <code>LOAD_PATH</code> variable and in my julia console i ran the following:</p>
  
  <pre><code>using MyModule   # No error
  r = ConcreteClass()
  </code></pre>
  
  <p>The second line fails with: <code>ERROR: UndefVarError: ConcreteClass not defined</code>. The thing in the Julia console when I type the second line the autocomplete does suggest <code>ConcreteClass</code>, so the type is recognized but not sure why the <code>not defined</code> error comes.</p>