title: How do you access properties of base class in Typescript?
body: <p>There was a suggestion of using code like this</p>
  
  <pre><code>class A {
      // Setting this to private will cause class B to have a compile error
      public x: string = 'a';
  }
  
  class B extends A {
      constructor(){super();}
      method():string {
          return super.x;
      }
  }
  
  var b:B = new B();
  alert(b.method());
  </code></pre>
  
  <p>and it even got 9 votes. But when  you paste it on the official TS playground 
  <a href="http://www.typescriptlang.org/Playground/" rel="noreferrer">http://www.typescriptlang.org/Playground/</a>
  it gives you and error.</p>
  
  <p>How to access the x property of A from B?</p>