TypeScript/tests/baselines/reference/ParameterList7.js

15 lines
295 B
TypeScript

//// [ParameterList7.ts]
class C1 {
constructor(public p1:string); // ERROR
constructor(private p2:number); // ERROR
constructor(public p3:any) {} // OK
}
//// [ParameterList7.js]
var C1 = (function () {
function C1(p3) {
this.p3 = p3;
} // OK
return C1;
})();