swc/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedClassExpressionShadowing.ts

19 lines
282 B
TypeScript
Raw Normal View History

// @allowJs: true
// @checkJs: true
// @target: es5
// @outDir: ./out
// @declaration: true
// @filename: index.js
class A {
member = new Q();
}
class Q {
x = 42;
}
module.exports = class Q {
constructor() {
this.x = new A();
}
}
module.exports.Another = Q;