Let's say I do the following code:
class Test
t: ->
"hell"
d: ->
console.log t()
"no"
It will compile to something like:
(function() {
this.Test = (function() {
function Test() {}
Test.prototype.t = function() {
return "hell";
};
Test.prototype.d = function() {
console.log(t());
return "no";
};
return Test;
})();
}).call(this);
Ok, I can't call the method t() inside the d() method.
Why not? How can I fix it?
Thanks in advance.