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 () {
|
2014-08-16 00:49:09 +02:00
|
|
|
this.Foo(); // no error
|
2014-07-13 01:04:16 +02:00
|
|
|
List.Foo();
|
|
|
|
};
|
2015-02-07 03:45:09 +01:00
|
|
|
List.Foo = function () { };
|
2014-07-13 01:04:16 +02:00
|
|
|
return List;
|
|
|
|
})();
|