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

14 lines
257 B
TypeScript

//// [optionalParamReferencingOtherParams3.ts]
function right(a = b, b = a) {
a;
b;
}
//// [optionalParamReferencingOtherParams3.js]
function right(a, b) {
if (a === void 0) { a = b; }
if (b === void 0) { b = a; }
a;
b;
}