TypeScript/tests/baselines/reference/parserParameterList7.js
2014-07-12 17:30:19 -07:00

15 lines
301 B
JavaScript

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