title: TypeScript typed array usage
body: <p>I have a TypeScript class definition that starts like this;</p>
  
  <pre><code>module Entities {          
  
      export class Person {
          private _name: string;
          private _possessions: Thing[];
          private _mostPrecious: Thing;
  
          constructor (name: string) {
              this._name = name;
              this._possessions = new Thing[100];
          }
  </code></pre>
  
  <p>Looks like an array of type Thing does not get translated correctly to the corresponding Javascript array type.  This is a snippet from the generated JavaScript:</p>
  
  <pre><code>function Person(name) {
      this._name = name;
      this._possessions = new Entities.Thing[100]();
  }
  </code></pre>
  
  <p>Executing code containing a Person object, throw an exception when attempting to initialize the _possession field:</p>
  
  <blockquote>
    <p>Error is "0x800a138f - Microsoft JScript runtime error: Unable to get value of the property '100': object is null or undefined".</p>
  </blockquote>
  
  <p>If I change the type of _possession to <code>any[]</code>  and initialize _possession with <code>new Array()</code> exception is not thrown.  Did I miss something?</p>