mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 16:13:34 +03:00
10 lines
292 B
TypeScript
10 lines
292 B
TypeScript
|
// @target: esnext,es2015,es5
|
||
|
// @noTypesAndSymbols: true
|
||
|
// @noEmit: true
|
||
|
|
||
|
// https://github.com/microsoft/TypeScript/issues/36295
|
||
|
const a = (): string | undefined => undefined;
|
||
|
(({ [a() ?? "d"]: c = "" }) => { var a; })();
|
||
|
|
||
|
const x = "";
|
||
|
(({ [a() ?? "d"]: c = "", d = x }) => { var x; })();
|