static method class super references - fixes #40

This commit is contained in:
Sebastian McKenzie
2014-10-11 08:58:54 +11:00
parent 80b0b9f5f6
commit 35522c2ef3
3 changed files with 13 additions and 5 deletions

View File

@@ -9,4 +9,8 @@ class Test extends Foo {
test() {
super();
}
static foo() {
super();
}
}

View File

@@ -17,5 +17,8 @@ var Test = function (Foo) {
Test.prototype.test = function () {
Foo.prototype.test.call(this);
};
Test.foo = function () {
Foo.foo.call(this);
};
return Test;
}(Foo);