TypeScript/tests/baselines/reference/staticOffOfInstance2.js

22 lines
410 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [staticOffOfInstance2.ts]
class List<T> {
public Blah() {
this.Foo(); // no error
List.Foo();
}
public static Foo() { }
}
//// [staticOffOfInstance2.js]
var List = (function () {
function List() {
}
List.prototype.Blah = function () {
this.Foo(); // no error
2014-07-13 01:04:16 +02:00
List.Foo();
};
List.Foo = function () { };
2014-07-13 01:04:16 +02:00
return List;
})();