swc/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.2.ts

17 lines
275 B
TypeScript

// @target: es5, es2015, esnext
// @noEmit: true
// @noTypesAndSymbols: true
// https://github.com/microsoft/TypeScript/issues/36295
function a(): any {}
function b({ b = a(), ...x } = a()) {
var a;
}
const x = "";
function c({ b, ...c } = a(), d = x) {
var x;
}