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

22 lines
480 B
TypeScript

//// [parameterPropertyInConstructor2.ts]
module mod {
class Customers {
constructor(public names: string);
constructor(public names: string, public ages: number) {
}
}
}
//// [parameterPropertyInConstructor2.js]
var mod;
(function (mod) {
var Customers = (function () {
function Customers(names, ages) {
this.names = names;
this.ages = ages;
}
return Customers;
})();
})(mod || (mod = {}));