title: Upgrading to .9, aliasing modules no longer works to the right of = sign when in declaration file
body: <p>After upgrading to TypeScript .9 my libraries module aliasing no longer works.</p>
  
  <p>Example:<br>
  <strong>foo.d.ts</strong> or <strong>foo.ts</strong> (can be either extension)</p>
  
  <pre><code>declare module Foo {
      export class Bar {
      }
  }
  
  import Baz = Foo;
  </code></pre>
  
  <p><strong>app.ts</strong></p>
  
  <pre><code>/// &lt;reference path="foo.d.ts" /&gt;
  
  var a = new Baz.Bar(); // Compiler error on Baz "Could not find symbol 'Baz'"
  var b: Baz.Bar; // Works just fine, no compiler error
  var c: Baz.Bar = new Baz.Bar(); // Compiler error on second Baz "Could not find symbol 'Baz'"
  var d = new Foo.Bar(); // Works just fine
  </code></pre>
  
  <p>Also note that it doesn't have to be "new xyz" it's any reference to Baz to the right of the equal sign.</p>
  
  <p>Now if I take the code inside <strong>foo.d.ts</strong> and place it into <strong>app.ts</strong> no compiler error is thrown.  I'm thinking this is a compiler issue but am I missing something?</p>
  
  <p><strong>Update:</strong> I've created an Issue report for this: <a href="http://typescript.codeplex.com/workitem/1182" rel="nofollow">http://typescript.codeplex.com/workitem/1182</a></p>