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

6 lines
202 B
TypeScript
Raw Normal View History

// @target: esnext,es2015,es5
// @noTypesAndSymbols: true
// https://github.com/microsoft/TypeScript/issues/36295
const a = (): { d: string } | undefined => undefined;
(({ [a()?.d]: c = "" }) => {})();