mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
12 lines
216 B
TypeScript
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;
|
|
}
|