title: Elixir alias on a submodule
body: <p>According to <a href="http://elixir-lang.org/getting-started/alias-require-and-import.html#aliases" rel="nofollow">http://elixir-lang.org/getting-started/alias-require-and-import.html#aliases</a></p>
  
  <p>I should be able to have this code working: </p>
  
  <pre><code>defmodule A do
    alias A.B, as: C
  
    defmodule B do
      defstruct name: ""
    end
  end
  </code></pre>
  
  <p><code>iex(1)&gt; %C{}</code></p>
  
  <p>But instead i'm having this error: </p>
  
  <p><code>** (CompileError) iex:1: C.__struct__/0 is undefined, cannot expand struct C</code></p>
  
  <p>Any idea of what i'm missing here ?</p>
  
  <p><strong>Edit:</strong> Module naming is simplified here for the exemple</p>