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

6 lines
199 B
TypeScript

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