mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
|
// @target: esnext,es2015,es5
|
||
|
// @noTypesAndSymbols: true
|
||
|
// @noEmit: true
|
||
|
|
||
|
// https://github.com/microsoft/TypeScript/issues/36295
|
||
|
const a = (): { d: string } | undefined => undefined;
|
||
|
((b = a()?.d) => { var a; })();
|
||
|
|
||
|
const x = "";
|
||
|
((b = a()?.d, d = x) => { var x; })();
|