title: Run method with reference to it's static vars from a child class
body: <p>I have a class <code>Child</code> which extends <code>Test</code>. I want to call a function from <code>Test</code> from <code>Child</code>.</p>
  
  <p>I tried this:</p>
  
  <pre><code>class Test
      constructor: -&gt;
          @i = 'hello world'
  
      f1: -&gt; console.log @i
      f2: -&gt; console.log 'hello'
  
  class Child extends Test
      run: -&gt;
          Test::f1()
  
  hello = new Child()
  hello.run()
  </code></pre>
  
  <p>When I call <code>hello.run()</code>, it calls <code>Test.f1()</code>, but the result is <code>undefined</code>. It's not setting the static variable <code>@i</code> before it's running <code>Test.f1()</code>.</p>
  
  <p>If I switch <code>Test::f1()</code> to <code>Test::f2()</code>, it gives me the correct result.</p>
  
  <p>I need to know how should I make <code>Test</code>'s <code>constructor</code> run when I create a <code>new Child()</code> so that <code>@i</code> is defined in <code>Test</code> when I run <code>Test::f1()</code> from <code>Child.run()</code>.</p>
  
  <p>Thanks! :D</p>