swc/crates/swc_ecma_parser/tests/tsc/functionParameterObjectRestAndInitializers.ts

12 lines
216 B
TypeScript

// @target: es2015
// @noTypesAndSymbols: true
// https://github.com/microsoft/TypeScript/issues/47079
function f({a, ...x}, b = a) {
return b;
}
function g({a, ...x}, b = ({a}, b = a) => {}) {
return b;
}