title: accessing static member from non-static function in typescript
body: <p>I am trying to access a static member from a non-static function in the class, and I get an error saying</p>
  
  <blockquote>
    <p>Static member cannot be accessed off an instance variable</p>
  </blockquote>
  
  <p>this is how my code looks -</p>
  
  <pre><code>class myClass {
    public static testStatic: number = 0;
    public increment(): void {
      this.testStatic++;
    }
  }
  </code></pre>
  
  <p>From what I understand of static members/methods, we shouldn't access non-static members in static functions, but vice-versa should be possible.
  the static member is already created and is valid, so why can't I access from my non-static method?</p>