TypeScript/tests/baselines/reference/reassignStaticProp.js

21 lines
254 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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;
})();