title: Accessing member of base class
body: <p>See the inheritance example from the playground on the TypeScript site:</p>
  
  <pre><code>class Animal {
    public name;
    constructor(name) {
      this.name = name;
    }
    move(meters) {
      alert(this.name + " moved " + meters + "m.");
    }
  }
  
  class Snake extends Animal {
    constructor(name) {
      super(name);
    }
    move() {
      alert("Slithering...");
      super.move(5);
    }
  }
  
  class Horse extends Animal {
    constructor(name) {
      super(name);
    }
    move() {
      alert(super.name + " is Galloping...");
      super.move(45);
    }
  }
  
  var sam = new Snake("Sammy the Python");
  var tom: Animal = new Horse("Tommy the Palomino");
  
  sam.move();
  tom.move(34);
  </code></pre>
  
  <p>I have changed one line of code: the alert in <code>Horse.move()</code>. There I want to access <code>super.name</code>, but that returns just <code>undefined</code>. IntelliSense is suggesting that I can use it and TypeScript compiles fine, but it does not work.</p>
  
  <p>Any ideas?</p>