TypeScript/tests/baselines/reference/reassignStaticProp.js
2014-07-12 17:30:19 -07:00

21 lines
254 B
TypeScript

//// [reassignStaticProp.ts]
class foo {
static bar = 1;
static bar:string; // errror - duplicate id
}
//// [reassignStaticProp.js]
var foo = (function () {
function foo() {
}
foo.bar = 1;
return foo;
})();