swc/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.ts
2022-02-04 17:08:38 +09:00

12 lines
340 B
TypeScript

// @target: esnext,es2015,es5
// @noTypesAndSymbols: true
// @noEmit: true
// @useDefineForClassFields: false
// https://github.com/microsoft/TypeScript/issues/36295
class C {}
(({ [class extends C { static x = 1 }.x]: b = "" }) => { var C; })();
const x = "";
(({ [class extends C { static x = 1 }.x]: b = "" }, d = x) => { var x; })();