14 lines
257 B
JavaScript
14 lines
257 B
JavaScript
|
//// [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;
|
||
|
}
|