20 lines
254 B
TypeScript
20 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;
|
|
})();
|