TypeScript/tests/baselines/reference/optionalParamReferencingOtherParams3.js

14 lines
257 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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;
}