2014-07-13 01:04:16 +02:00
|
|
|
//// [typeOfPrototype.ts]
|
|
|
|
class Foo {
|
|
|
|
bar = 3;
|
|
|
|
static bar = '';
|
|
|
|
}
|
|
|
|
Foo.prototype.bar = undefined; // Should be OK
|
|
|
|
|
|
|
|
|
|
|
|
//// [typeOfPrototype.js]
|
|
|
|
var Foo = (function () {
|
|
|
|
function Foo() {
|
|
|
|
this.bar = 3;
|
|
|
|
}
|
|
|
|
Foo.bar = '';
|
|
|
|
return Foo;
|
|
|
|
})();
|
2014-08-16 00:49:09 +02:00
|
|
|
Foo.prototype.bar = undefined; // Should be OK
|