15 lines
237 B
TypeScript
15 lines
237 B
TypeScript
|
//// [constructorArgsErrors2.ts]
|
||
|
class foo {
|
||
|
constructor (public static a: number) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
//// [constructorArgsErrors2.js]
|
||
|
var foo = (function () {
|
||
|
function foo(a) {
|
||
|
this.a = a;
|
||
|
}
|
||
|
return foo;
|
||
|
})();
|