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

11 lines
303 B
TypeScript
Raw Normal View History

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