swc/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.ts

12 lines
328 B
TypeScript
Raw Normal View History

// @target: esnext
// @noTypesAndSymbols: true
// @noEmit: true
// @useDefineForClassFields: true
// 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; })();