title: Calling static method from non-static method in Typescript
body: <p>I have some static stuff in all my hierarchy (in this example, the <code>_image</code>). I would want to be able to access the correspondant <code>_image</code> without having to repeat the code:</p>
  
  <p>This would be great:</p>
  
  <pre><code>class Actor {
      static _image; // I need it to be static
  
      method show(){  // I need it to be non-static
          this.setImage(this.class._image); //doesn't work....
      }
  }
  
  class GoodActor extends Actor {
      static _image = 'good.png'
  }
  
  class BadActor extends Actor {
      static _image = 'bad.png'
  }
  
  class MediumActor extends Actor {
      static _image = 'medium.png'
  }
  </code></pre>
  
  <p>But it doesn't work. Right now I only got to:</p>
  
  <pre><code>class Actor {
  }
  
  class GoodActor extends Actor {
      static _image = 'good.png'  // I need it to be static
  
      method show(){   // I need it to be non-static
          this.setImage(GoodActor._image);
      }
  }
  
  class BadActor extends Actor {
      static _image = 'bad.png'  // I need it to be static
  
      method show(){  // I need it to be non-static
          this.setImage(BadActor._image);
      }
  }
  
  class MediumActor extends Actor {
      static _image = 'medium.png'  // I need it to be static
  
      method show(){  // I need it to be non-static
          this.setImage(MediumActor._image);
      }
  }
  </code></pre>
  
  <p>Suppose those four classes have more methods. I don't want to have to repeat the <code>show()</code> method in every subclass... Yet I <em>need</em> the <code>show()</code> method to be <em>non static</em> and the <code>_image</code> to be <em>statically accessed</em>.</p>
  
  <p>I have read this issue <a href="https://github.com/Microsoft/TypeScript/issues/7673" rel="nofollow noreferrer">https://github.com/Microsoft/TypeScript/issues/7673</a> but unfortunatelly I can't ask there as they have closed it without fixing it. None of them talked about this problem of needing to dynamically resolve the static method to be invoked.</p>