title: How to access static members from instance methods in typescript?
body: <p>I try to use a static member from an instance method. I know about <a href="https://stackoverflow.com/questions/22516320/accessing-static-member-from-non-static-function-in-typescript">accessing static member from non-static function in typescript</a>, but I do not want to hard code the class to allow inheritance:</p>
  
  <pre><code>class Logger {
    protected static PREFIX = '[info]';
  
    public log(msg: string) {
      console.log(Logger.PREFIX + ' ' + msg); // What to use instead of Logger` to get the expected result?
    }
  }
  
  class Warner extends Logger {
    protected static PREFIX = '[warn]';
  }
  
  (new Logger).log('=&gt; should be prefixed [info]');
  (new Warner).log('=&gt; should be prefixed [warn]');
  </code></pre>
  
  <p>I've tried things like</p>
  
  <pre><code>typeof this.PREFIX
  </code></pre>