TypeScript/tests/baselines/reference/requiredInitializedParameter2.js
Jason Freeman 628d63cf75 Add tests
2015-07-24 14:59:59 -07:00

19 lines
336 B
TypeScript

//// [requiredInitializedParameter2.ts]
interface I1 {
method();
}
class C1 implements I1 {
method(a = 0, b) { }
}
//// [requiredInitializedParameter2.js]
var C1 = (function () {
function C1() {
}
C1.prototype.method = function (a, b) {
if (a === void 0) { a = 0; }
};
return C1;
})();