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