TypeScript/tests/baselines/reference/typeOfPrototype.js
2015-12-08 17:51:10 -08:00

18 lines
322 B
TypeScript

//// [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;
}());
Foo.prototype.bar = undefined; // Should be OK